You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by shamsnezami <md...@gmail.com> on 2007/07/08 22:03:39 UTC
cannot use certain form property names
Property names, whose second character is in uppercase, cannot be rendered on
JSP using the property name. For example
If you have a property named as sTxt, then you cannot use
<bean:write name="testForm" property="sTxt "/>
in the jsp.
Can anybody explain to me why is it so?
--
View this message in context: http://www.nabble.com/cannot-use-certain-form--property-names-tf4045735.html#a11492211
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: cannot use certain form property names
Posted by Dave Newton <ne...@yahoo.com>.
--- shamsnezami <md...@gmail.com> wrote:
> Property names, whose second character is in
> uppercase, cannot be rendered on JSP using the
> property name. For example If you have a property
> named as sTxt, then you cannot use
> <bean:write name="testForm" property="sTxt "/>
> in the jsp.
> Can anybody explain to me why is it so?
What have you named your getters and setters? If you
follow the JavaBean naming standard you shouldn't have
any problem.
d.
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org