in the method name first character after get or set should be captial, and while 
refering a property in jsp the first character should be small
eg. if you have a bean property as
        .
        .
        .
        String lastName;
        String getLastName()
        {
        }
        void setLastName()
        {
        }       
        .
        .
        .

You will refer the property lastname in jsp as 
........property="lastName" ......



Deepak 


-----Original Message-----
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 12:03 AM
To: 'Struts Users Mailing List'
Subject: RE: no getter method found


Try naming your methods
public String getLastname()
and
public void setLastname()

Regards,

Richard


-----Original Message-----
From: Mehran Zonouzi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003 6:55 AM
To: [EMAIL PROTECTED]
Subject: no getter method found


I have the below in my jsp page

Last Name: <html:text property="lastname"/><br>

and this in my ActionForm subclass

private String lastName = null;

      public String getlastname(){
         return this.lastName;
      }

      public void setlastname( String lastName){
         this.lastName = lastName;
      }

But I keep getting the no gett found error message...
No getter method for property lastname of bean
org.apache.struts.taglib.html.BEAN


What should the getter method be called?


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



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

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


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

Reply via email to