Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot retrieve mapping for action" Watch "Cannot retrieve mapping for action" New topic

Cannot retrieve mapping for action

Marcus Bowden

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

Joined: Aug 03, 2008
Posts: 9291

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:
subject: Cannot retrieve mapping for action
Similar Threads
Client side form validation not working
javax.servlet.jsp.JspException: Cannot find bean LoginForm in any scope
Cannot find bean in any scope
when iam running my struts application following error comes please help me
how to select mutiplse values in SELECT TAG