struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Larry \(L.\)" <lzhan...@ford.com>
Subject RE: Can I use one action for displaying and submission (with struts validation)
Date Fri, 25 Jan 2008 17:22:46 GMT
I am intested in knowing how to turn automatic validation off? How?
Using javascript to set the flag is not accepted by us.

Also all my submission is also get (for some reasons in our project) 

-----Original Message-----
From: paulus.benedictus@gmail.com [mailto:paulus.benedictus@gmail.com]
On Behalf Of Paul Benedict
Sent: Friday, January 25, 2008 12:15 PM
To: Struts Users Mailing List
Subject: Re: Can I use one action for displaying and submission (with
struts validation)

You can use this pattern:

* Turn automatic validation off.

* If your action was executed as a GET, branch to viewing logic.

* If your action was executed as a POST, branch to validation logic and
submission logic.

Paul

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


Mime
View raw message