wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 9291
    
  17

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




SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Cannot retrieve mapping for action
 
Similar Threads
javax.servlet.jsp.JspException: Cannot find bean LoginForm in any scope
Client side form validation not working
how to select mutiplse values in SELECT TAG
when iam running my struts application following error comes please help me
Cannot find bean in any scope