On 06/05/2010 15:19, Luís de Sousa wrote: > On Thu, May 6, 2010 at 3:14 PM, Pid <[email protected]> wrote: >>> >>> org.apache.jasper.JasperException: /greeter.jsp(5,10) The value for >> >> Now the contents of the greeter.JSP, please? >> > > Hi again, that was in the link: > > http://www.roseindia.net/ejb/introduction/javabean.shtml
But is that what is in your code? We ask questions like this because
it's not always the case.
> ///////////////////////////////////////////////////////////////////////////////////
> ///// greeterbean.java
>
> package ourbeans;
>
> public class greeterbean
GreeterBean is the proper name for the class.
> {
>
> public greeterbean() { }
>
> public String greetme(String s)
>
> {
>
> return "How are you?...."+s;
>
> }
>
> }
>
> ///////////////////////////////////////////////////////////////////////////////////
> ///// greeter.htm
>
> <html>
>
> <body>
>
> <form method=post action=greeter.jsp>
Ugly HTML, IMO.
p
> <input type=text name='text1'>
>
> <input type=submit>
>
> </form>
>
> </body>
>
> </html>
>
> ///////////////////////////////////////////////////////////////////////////////////
> ///// greeter.jsp
>
> <html>
>
> <body>
>
> <jsp:useBean id="greeter1" class="ourbeans.greeterbean" />
>
> <%
>
> String s =
> request.getParameter("text1");
>
> String a = greeter1.greetme(s);
>
> out.println(a);
>
> %>
>
> </body>
>
> </html>
>
> ///////////////////////////////////
>
> Thanks,
>
> Luís
signature.asc
Description: OpenPGP digital signature
