File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Cannot find Bean under name.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find Bean under name.." Watch "Cannot find Bean under name.." New topic
Author

Cannot find Bean under name..

Vidya Shankar
Greenhorn

Joined: Jul 05, 2009
Posts: 5
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
GeeCON Prague 2014
 
subject: Cannot find Bean under name..