Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple form-beans aren't recognized

 
Harry Henriques
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have two ActionClasses and I have two ActionForms in my Struts application. I am getting the following error message in the stack trace. There are two form-beans: logonForm and addCourseForm. The property that is not being satisfied is not in LogonForm at all, but is in AddCourseForm. Do you see what I'm doing wrong? I've looked at this for several hours.

javax.servlet.jsp.JspException: No getter method for property: "courseId" of bean: "examples.LogonForm"








web.xml



struts-config.xml

 
Raaja Gotluru
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Might be you have used courseId as one of the input fields property in the jsp you are using check that. Replace that with the variables you have declared in the logonForm or replace the id as courseId in the logonForm.

This will solve your problem.

--raaja. g
 
Orton K Randy
Ranch Hand
Posts: 41
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would want to take a look at Logon and AddCourses JSPs. Care to post them too?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic