--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote:
> I am intested in knowing how to turn automatic validation off? How?

Automagic validation is controlled by the "validate" attribute in the
struts-config files.

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

That'll make it harder; is there any particular reason you can't just change
form submissions to POST? 

It certainly follows the spirit of HTTP a bit more closely and makes Msgr.
Benedictus' logic trivial to implement.

d.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to