Mark,
I'm not sure which response you are referring to, but getLastname() and
setLastname() is wrong if the member variable is called lastName.

Mehran, basically, the property value of your html:text tag needs to match
the name of the member variable in your form bean. If you have:
private String lastname;

in your form bean, then you should have a getter and setter called
getLastname() and setLastname() and in your jsp you would have <html:text
property="lastname"/>

Since your member variable is called lastName, you should have a getter and
setter called getLastName() and setLastName() and in your jsp you would have
<html:text property="lastName"/>

regards,

Richard



-----Original Message-----
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003 11:56 AM
To: 'Struts Users Mailing List'
Subject: RE: no getter method found


see my response to your last email

-----Original Message-----
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003 2:34 PM
To: 'Struts Users Mailing List'
Subject: RE: no getter method found


Actually, my last email was wrong, they should be:
public String getLastName()
and
public void setLastName();

-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]

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

Reply via email to