• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot find Bean under name..

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic