• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Error: No getter method for property

 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic