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.
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...
I also noticed that you are using redirectAction as result type. But I think it should be redirect-action...