• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No getter method Error

 
Dolly Patel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I keep getting this error.
No getter method for property username of bean org.apache.struts.taglib.html.Bean
I did read all the comments on Case sensitive name and have made sure that i follow the rules. But i still get the same error. Here is my clip of code. Please help. I have spend enuf time on this and cant think of anything else.
//************ Java Bean
public final class WizSearchForm extends ActionForm {
private String action = "WizardSearch";
private String username = null;
public String getAction()
{
return (this.action);
}
public void setAction(String action)
{
this.action = action;
}
public String getUsername() {
return (this.username);
}
public void setUsername(String username) {
this.username = username;
}
// ************ JSP Form
<td align="right">
<bean:message key="prompt.username"/>
</td>
<td><html:text property="username" size="16" /></td>
 
Ted Husted
Author
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP and ActionForm look fine, so it must be that the form is trying to submit to an action that uses some other form-bean.
-Ted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic