Re: Disable validate in actionForm

2004-08-17 Thread Rick Reumann
Sebastian Ho wrote: I suppose this is how I do it? Why don't you just use a cancel button and then validate won't be called? You can still label the cancel button as "Back" and it will submit to your action. -- Rick ---

RE: Disable validate in actionForm

2004-08-17 Thread Sebastian Ho
I suppose this is how I do it? And in my ActionForm : if(getSelection().equals("createexperiment")) { //validate } But getSelection returns me a null and I don't know why.. Sebastian On Tue, 2004-08-17 at 20:44, Pavel Kolesnikov wrote:

RE: Disable validate in actionForm

2004-08-17 Thread Pavel Kolesnikov
On Tue, 17 Aug 2004, Sebastian Ho wrote: > I fixed the Back problem using javascript (using javascript > history.back()). Although it is resolved, I am still very much > interested in the struts solution without using javascript. what about checking for the "back" property in your validate method

RE: Disable validate in actionForm

2004-08-17 Thread Sebastian Ho
Thanks Richard I fixed the Back problem using javascript (using javascript history.back()). Although it is resolved, I am still very much interested in the struts solution without using javascript. sebastian On Tue, 2004-08-17 at 18:46, Richard Aukland wrote: > Sebastien, > > I use this techni

RE: Disable validate in actionForm

2004-08-17 Thread Richard Aukland
Sebastien, I use this technique, it works but i dont know if it is 'good practice' 1. Change your 'back' button from a submit to a cancel button (thereby avoiding validation) 2. Set the action of the button to 'previous' using javascript . 3. pick up the 'previous' in a DispatchAction class and f

RE: Disable validate in actionForm

2004-08-17 Thread Sebastian Ho
TED] > Sent: Tuesday, August 17, 2004 3:44 PM > To: Struts Users Mailing List > Subject: Disable validate in actionForm > > hi > > I have an validate method in my actionform and everything works fine. I > added a 'Back' button in my webpage, and therefore validatio

RE: Disable validate in actionForm

2004-08-17 Thread Sebastian Ho
On Tue, 2004-08-17 at 15:47, Kataria, Satish wrote: > Map it to a different actionMapping and set validate="fasle"; > ie the submit and back button should have a different actionmapping > > Satish > > -Original Message- > From: Sebastian Ho [mailto:[EMAIL PRO

RE: Disable validate in actionForm

2004-08-17 Thread Aru
04 3:44 PM To: Struts Users Mailing List Subject: Disable validate in actionForm hi I have an validate method in my actionform and everything works fine. I added a 'Back' button in my webpage, and therefore validation is not necessary if the 'Back' button is clicked. Validati

Re: Disable validate in actionForm

2004-08-17 Thread Pavel Kolesnikov
On Tue, 17 Aug 2004, Sebastian Ho wrote: > I have an validate method in my actionform and everything works fine. I > added a 'Back' button in my webpage, and therefore validation is not > necessary if the 'Back' button is clicked. Validation should occurs only > if 'Next' is selected. > > How do

RE: Disable validate in actionForm

2004-08-17 Thread Kataria, Satish
t: Disable validate in actionForm hi I have an validate method in my actionform and everything works fine. I added a 'Back' button in my webpage, and therefore validation is not necessary if the 'Back' button is clicked. Validation should occurs only if 'Next' is sele

Disable validate in actionForm

2004-08-17 Thread Sebastian Ho
hi I have an validate method in my actionform and everything works fine. I added a 'Back' button in my webpage, and therefore validation is not necessary if the 'Back' button is clicked. Validation should occurs only if 'Next' is selected. How do I stop struts from calling validate() is 'Back' is