aspose file tools*
The moose likes Struts and the fly likes Cannot find ActionMappings or ActionFormBeans collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find ActionMappings or ActionFormBeans collection" Watch "Cannot find ActionMappings or ActionFormBeans collection" New topic
Author

Cannot find ActionMappings or ActionFormBeans collection

Magnus Kjellberg
Greenhorn

Joined: Dec 20, 2005
Posts: 3
Hi,

Ive looked everywhere for a solution to this problem, ive found numerous things but none have helped me. I have a really simple application, just trying to get it to work.

/submit.jsp


struts-config.xml:


And in /web-inf/classes/hansen/playground/ i have SubmitAction.class & SubmitForm.class

Would appreciate some help

Edit: Stupid smileys destroy my code ;)
[ December 20, 2005: Message edited by: Magnus Kjellberg ]
Mateus Hooker
Greenhorn

Joined: Jul 25, 2005
Posts: 4
Hi,

Either the <servlet> tags for the Struts action servlet or the <servlet-mapping> tags for the .do extension mapping or both are not present in the web.xml file.

Typos or spelling errors in the struts-config.xml can lead to this error message. For example, missing a slash ("/") on a closing tag can have this effect.

Another element that must be present in the web.xml file is the load-on-startup element. This can be either an empty tag or can have an integer specified that indicates the priority of executing the associated servlet. The higher the number in the load-on-startup tags, the lower its priority.

Another possibility, related to need to use load-on-startup tag, is that precompiling JSPs using Struts can lead to this message as well.

Hope this helps.
sumanth divvela
Greenhorn

Joined: Dec 19, 2005
Posts: 10
u have entered code is here

but i hope the problem with
instead of this just try out this i hope it will work just try it
Aaron Ting
Ranch Hand

Joined: Dec 13, 2005
Posts: 78
Greetings,


I have no idea if this helps... but, you can try changing your tag form from <html> to <html:html>...

I think by doing so, it is trying to tell the program that the .jsp page is under the Struts framework.. isn't it.. ?

Hmm... i wonder..


If you can't convince them, confuse them!
Magnus Kjellberg
Greenhorn

Joined: Dec 20, 2005
Posts: 3
Ive managed to solve that problem, some stupid configuration error. Bah.

But now ive got another problem, the form opens and displays with the pre-determined value as set in SubmitForm.java, but after i submit, submit.do is just empty, doesnt display the form or anything. Just an emtpy page

And by the way, it doesnt work if i put "/submit.do" instead of "/submit".

SubmitForm.java:

[ December 21, 2005: Message edited by: Magnus Kjellberg ]
Aaron Ting
Ranch Hand

Joined: Dec 13, 2005
Posts: 78
Originally posted by Magnus Kjellberg:
Ive managed to solve that problem, some stupid configuration error. Bah.

But now ive got another problem, the form opens and displays with the pre-determined value as set in SubmitForm.java, but after i submit, submit.do is just empty, doesnt display the form or anything. Just an emtpy page

And by the way, it doesnt work if i put "/submit.do" instead of "/submit".

SubmitForm.java:


[ December 21, 2005: Message edited by: Magnus Kjellberg ]



Greetings,


I use to have such problem too... don't know if its the same problem you are facing like i was..

Anyway, my problem was that the validation was having some problem.. and, i didn't really went to set the errorPage... so, you might want to look into this area..

Hope this helps..
Magnus Kjellberg
Greenhorn

Joined: Dec 20, 2005
Posts: 3
But ive stated both the success and failure forwards to /submit.jsp.

Also when if i just enter "localhost/webapp/submit.do" it gives me a blank page.
pax smith
Ranch Hand

Joined: Dec 13, 2005
Posts: 45
Just check the location of your web.xml and struts-config.xml
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot find ActionMappings or ActionFormBeans collection