File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts2 Action Mapping Problem - No configuration found for the specified action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Action Mapping Problem - No configuration found for the specified action" Watch "Struts2 Action Mapping Problem - No configuration found for the specified action" New topic
Author

Struts2 Action Mapping Problem - No configuration found for the specified action

Akshay Rao
Greenhorn

Joined: Aug 10, 2009
Posts: 1
Although I am new to struts2 (with no experience in Struts 1) I have done a bit of successful coding in it lately and have hit a problem. I have one form that is executing perfectly. I have tried to create another form and am running into a scenario where Struts can't find the configuration for my specified action. The actual error is:
No configuration found for the specified action: '/signup-submit' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.


Just a bit of technical background, I have (for good or bad) stored all my jsp files in /WEB-INF/jsp directory of my application. My line of thinking at the time was that having all the files out of the regular path made it that much more difficult to access the jsp's directly from the URL - essentially adding more control to my app from a development/security perspective.

Here is my web.xml:


Here is my struts.xml:


The Contact Form works just fine. I tried to implement the Signup form along the same lines and that is where I am stuck.

The 'execute()' method in com.ml.web.actionForms.SignupForm simply executes a few println() statements and then returns "SUCCESS". My class does have the variables that get populated by the form by Struts and I do implement validation via Java annotations. The validation via annotations are pretty basic - @EmailValidator and @RequiredStringValidator.

Any thoughts?
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689


Hi Akshay,

Please take time to chose right forum. There is separated section for Struts related question.

http://www.coderanch.com/forums/f-58/Struts



Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61762
    
  67

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17



Why are there duplicate results in this declaration. the input and error results are defined twice and technically the success result too because the fourth result doesn't have a name so it will become success which is duplicate of the first result...

[Edit]

I also noticed that you are using redirectAction as result type. But I think it should be redirect-action...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

"redirect-action" is deprecated as of S2.0.9, and removed entire in S2.1; "redirectAction" is the correct result type name.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 Action Mapping Problem - No configuration found for the specified action