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                                          
                                      
http://localhost:8080/xxx/yyy.do?method=MyMethod

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  http://localhost:8080/xxx/yyy.do?method=SecondMethod.

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?
-- 
View this message in context: 
http://www.nabble.com/struts-newbie-validate-tp25274645p25274645.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to