*
The moose likes Struts and the fly likes Multiple form-beans aren't recognized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple form-beans aren Watch "Multiple form-beans aren New topic
Author

Multiple form-beans aren't recognized

Harry Henriques
Ranch Hand

Joined: Jun 17, 2009
Posts: 206
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

Joined: Mar 02, 2010
Posts: 108
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

Joined: Aug 12, 2011
Posts: 41

Would want to take a look at Logon and AddCourses JSPs. Care to post them too?


Coderanch, best ever forum on the net. Hands down.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiple form-beans aren't recognized
 
Similar Threads
Getting null pointer Exception
Parsing error processing resource path /WEB-INF/struts-config.xml
Once more: javax.servlet.jsp.JspException: Cannot find bean
servlet action is not available
error comes while running the struts application please see the source code for detail