• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Multiple form-beans aren't recognized

 
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

 
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
 
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?
 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic