From: "Minn M Soe" <[EMAIL PROTECTED]>
In JSP, Using <html:text property="pAnswer"> gives out "No getter
method" error for my pAnswer field, while other fields like "username"
are having no problem.

But when I changed it to <html:text property="PAnswer">, tomcat no
longer gives me any errors.

But I guess pAnswer is the right way to describe my field. What was wrong?

For JavaBeans naming rules, see: http://java.sun.com/products/javabeans/docs/spec.html
(When there are two uppercase letters, you do not decapitalize the first one. So if you have getPAnswer(), then the property name is, as you discovered, PAnswer.)


--
Wendy Smoak




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to