• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi Akshay,

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

https://coderanch.com/forums/f-58/Struts

 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
What are you doing? You are supposed to be reading this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic