This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error: No getter method for property

 
Chris Boldon
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" />
 
Chris Boldon
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was the problem. Thank you very much for the reply.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic