Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

struts newbie validate doubts

Status
Not open for further replies.

acastanheira2001

Programmer
Sep 4, 2009
2
BR
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top