Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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: 9327

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

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Have you tried LearnNowOnline?
subject: Cannot retrieve mapping for action