File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method Error" Watch "No getter method Error" New topic

No getter method Error

Dolly Patel

Joined: Nov 25, 2002
Posts: 4
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><html:text property="username" size="16" /></td>
Ted Husted
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.

<a href="" target="_blank" rel="nofollow">Struts in Action</a>
I agree. Here's the link:
subject: No getter method Error
It's not a secret anymore!