Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Akshay Rao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"redirect-action" is deprecated as of S2.0.9, and removed entire in S2.1; "redirectAction" is the correct result type name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic