my dog learned polymorphism
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 9435

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
It's not a secret anymore!