This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes No getter method Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method Error" Watch "No getter method Error" New topic
Author

No getter method Error

Dolly Patel
Greenhorn

Joined: Nov 25, 2002
Posts: 4
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

Joined: Dec 02, 2002
Posts: 37
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.


<a href="http://husted.com/struts/book.html" target="_blank" rel="nofollow">Struts in Action</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No getter method Error