• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!