DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Let's configure a basic validation workflow, step by step.
Step 1
Create the input form.
Step 2
Create the Action class.
Step 3
Create the validators. The validation.xml format is either <ActionClassName>-validation.xml or <ActionClassName>-<ActionAliasName>-validation.xml.
Step 4
Make sure there is a result for "input" listed in the struts.xml for when the validation fails:
If you don't have this, you'll get a: "No result defined for action xxx.xxx.tutorial.HellowWorld and result input" error
2 Comments
Mark Greene
Nov 26, 2008Need a Step 4:
Make sure there is a result for "input" listed in the struts.xml for when the validation fails:
<action name="HelloWorld" class="tutorial.HelloWorld">
<result name="success">/tutorial/createconfirm.jsp</result>
<result name="error">/tutorial/error.jsp</result>
<result name="input">/tutorial/create.jsp</result>
</action>
If you don't have this, you'll get a: "No result defined for action xxx.xxx.tutorial.HellowWorld and result input" error
Unknown User (phil)
Nov 27, 2008Added - thanks.