Hi,

I have tried changing the method name also.

I have one more question. Might have been discussed in this forum. This is
about the caching of the bean. I have defined the scope of the bean as page.
But when I make some changes in the java code and then recompile the bean
changes are not reflected immediately. I have to shutdown the JSP engine and
restart.

Anyway of overcoming this problem?

Thanks

Vaidyanathan G

> -----Original Message-----
> From: Hans Bergsten [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, September 23, 1999 10:52 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Returning a value from bean ?
>
> Vaidyanathan_g wrote:
> >
> > Hi,
> >
> > when I use
> >
> > <jsp:getProperty name="name_of_the_bean" property="username"/>
> >
> > it is not returning any values.
> >
> > But when i use
> >
> > <%name_of_the_bean.getusername()%> it returns the value of the username.
> >
> > Any reason for this.
>
> One possible reason is that it looks like you're not following all details
> of the JavaBean naming conventions. If your property name is "username",
> the
> JavaBean should have a getter method named "getUsername", i.e. the first
> character in the property name must be capitalized in the method name.
> I assume the <jsp:getProperty> action fails to find the getter method
> unless
> you stick to the naming convention exactly.
> --
> Hans Bergsten           [EMAIL PROTECTED]
> Gefion Software         http://www.gefionsoftware.com
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to