On Thu, 02 Sep 2004 14:07:37 +0000, Janne Mattila <[EMAIL PROTECTED]> wrote: > -formBean method getEeMail() and <html:text size="30" maxlength="120" > property="eeMail"/> => works > -formBean method getEmail() and <html:text size="30" maxlength="120" > property="email"/> =>works > - formBean method getEMail() and <html:text size="30" maxlength="120" > property="eMail"/> => > > => org.apache.jasper.JasperException: No getter method for property eMail of > bean org.apache.struts.taglib.html.BEAN > > I don't know what method struts tries to find. Eclipse creates getter as > getEMail() when I name a property "eMail". I think getEMail() is just fine > getter for variable "eMail". (of course, one could argue whether variable > name should be "email" instead, but lets not go there....) > > I am using 1.1, would a later release solve this? >
Using a later release won't change anything, because the commons-beanutils code that Struts uses under the covers requires you to either follow the property naming conventions in the JavaBeans spec (http://java.sun.com/products/javabeans/docs/spec.html), or provide BeanInfo classes to tell the server what your property getter and setter methods really are. Property names like "eMail" break the conventions, and are thus not recognized. See the spec for more details on all of this. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]