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

Cannot retrieve mapping for action

Marcus Bowden
Greenhorn

Joined: Jul 22, 2009
Posts: 8
Hey guys,

I'm very new to struts and I'm having a problem calling the proper action from my config file. Any help would be greatly appreciated!

Here's what I'm getting:



My config file (struts-config-handsfree.xml):



The entry in my web.xml file for this config file :



And finally, a portion of my jsp that is trying to fire the action "/userRegister":



My colleagues are telling me that there might be a spelling or case difference between the jsp form action and the action path in the config file but ive tried to fix this and i still get the "Cannot retrieve mapping for action /userRegister" error.

Any help would be greatly appreciated. Thank you in advance for your time!
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Try this in your web.xml instead of what you are doing




SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot retrieve mapping for action
 
Similar Threads
how to select mutiplse values in SELECT TAG
when iam running my struts application following error comes please help me
Client side form validation not working
javax.servlet.jsp.JspException: Cannot find bean LoginForm in any scope
Cannot find bean in any scope