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

Cannot find Bean under name..

 
Vidya Shankar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I'm new to struts, please be patient with me !!

I have a series of JSP pages with forms, when I submit a form, I store the contents to the database & take the user to the next page, if its an update action, I need to populate the forms on load.

The storing part & populating parts are working fine (using ActionForm) BUT the page transitions are not working . I mean, after storing to the database I send a "success" message & my next page is not getting loaded. I'm geting this error "Cannot find bean under name projectOverviewForm" (2nd form name).

Here's the code snippet...

struts-config.xml:


On searching on the web, I heard this error mostly occurs due to html:select but I'm not using it in my JSP.

Please let me know if I need to upload any more code? Any help would be greatly appreciated!

Thanks & Regards,
Vidya Shankar
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vidya Shankar wrote:BUT the page transitions are not working . I mean, after storing to the database I send a "success" message & my next page is not getting loaded. I'm geting this error "Cannot find bean under name projectOverviewForm" (2nd form name).

That might not be the problem, I suspect, when you're trying to submit the form this exception occurred, because there is some problem with the Action Form associated with the HTML FORM you're submitting.
Now what will be the problem, its hard to find unless you provided a code snippet of of HTML FORM you're submitting with the ACTION FORM .

Also, have look at this similar Struts1 FAQ entry, it may applied to your problem

And Welcome to JR !!

And please make sure the width of post shouldn't be to long, it just cause some irritation for people(like me) whose screen size is 15 inch only
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic