jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Error: No getter method for property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error: No getter method for property" Watch "Error: No getter method for property" New topic
Author

Error: No getter method for property

Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
I am getting the following error:
javax.servlet.jsp.JspException: No getter method for property projects of bean projectListForm


I have searched the internet and found many such errors, but the common solutions don't seem to apply here. ProjectListForm does in fact have a setter for property.

ProjectListForm.java


ProjectListAction.java


projectList.jsp


struts-config.xml
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Here's the culprit:

<jsp:useBean id = "projectListForm" scope = "request" class = "com.x.strutstut.struts.action.ProjectListAction" />

Change this to

<jsp:useBean id = "projectListForm" scope = "request" class = "com.x.strutstut.struts.form.ProjectListForm" />


Merrill
Consultant, Sima Solutions
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
That was the problem. Thank you very much for the reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: No getter method for property
 
Similar Threads
Struts: No getter method for property name problem
No getter method for property - Problem
Struts - Cannot find bean in any scope
Action not getting called
struts example -output not display