Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error: No getter method for property  RSS feed

 
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
 
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.
 
That feels good. Thanks. Here's a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!