Paul Benedict wrote:
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.
Another approach is to retain declarative validation and
rom: [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:
>
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
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
4 matches
Mail list logo