acastanheira2001
Programmer
Hi,
I have to server-side validate user input data in a production system.
Here are some code snippets:
struts-config.xml
<action-mappings>
<action path="/xxx/yyy"
type="MyClassAction"
validate="false"
parameter="method"
scope="request"
name="MyForm">
<forward name="MyMethod"
redirect="false"
path="MyTilesInput"/>
<forward name="SecondMethod"
redirect="false"
path="MyTilesListResults"/>
____
As far as I know, when the user clicks
It forwards to MyTilesInput.
MyTilesInput form has the user input fields that I need to validate, but this jsp code has the same action xxx/yyy.do. When the user submits, it becomes
If I put validate = "true" and a input tag, it does the validate when the form MyTilesInput loads, but I need to validate after the user input.
Am I clear?
I have to server-side validate user input data in a production system.
Here are some code snippets:
struts-config.xml
<action-mappings>
<action path="/xxx/yyy"
type="MyClassAction"
validate="false"
parameter="method"
scope="request"
name="MyForm">
<forward name="MyMethod"
redirect="false"
path="MyTilesInput"/>
<forward name="SecondMethod"
redirect="false"
path="MyTilesListResults"/>
____
As far as I know, when the user clicks
It forwards to MyTilesInput.
MyTilesInput form has the user input fields that I need to validate, but this jsp code has the same action xxx/yyy.do. When the user submits, it becomes
If I put validate = "true" and a input tag, it does the validate when the form MyTilesInput loads, but I need to validate after the user input.
Am I clear?