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