struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <David.K...@wamu.net>
Subject RE: Urgent: No Getter Method found
Date Fri, 26 Sep 2003 15:50:38 GMT
> -----Original Message-----
> From: Abhijeet Mahalkar [mailto:Abhijeet.Mahalkar@indussoft.com] 
> 
> txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
> javax.servlet.jsp.JspException: No getter method for property 
> txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
> 
> i have following code in the Action Clas...  still i am 
> getting the error please Sugest solution for this...
> 
>  public String getTxtUserGroupCode()
>  {
>   return this.txtusergroupcode ;
>  }
> 
>  public void setTxtUserGroupCode(String s)
>  {
>   this.txtusergroupcode = s ;
>  }

There are two clues here.  First, the fact that it says the bean is
"org.apache.struts.taglib.html.BEAN" means that you haven't associated
the reference with an existing ActionForm or bean.  Second, these
accessors have to go in your ActionForm or bean class, not in the Action
class.

The name of your instance variable is irrelevant (in reference to other
responses to this question).

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message