Re: Can I use one action for displaying and submission (with struts validation)

2008-01-26 Thread Laurie Harper
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

RE: Can I use one action for displaying and submission (with struts validation)

2008-01-25 Thread Dave Newton
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: >

RE: Can I use one action for displaying and submission (with struts validation)

2008-01-25 Thread Zhang, Larry (L.)
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

Re: Can I use one action for displaying and submission (with struts validation)

2008-01-25 Thread Paul Benedict
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