File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Multiple form-beans aren't recognized

Harry Henriques
Ranch Hand

Joined: Jun 17, 2009
Posts: 206

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"



Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 118

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.
I agree. Here's the link:
subject: Multiple form-beans aren't recognized
It's not a secret anymore!