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
---
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:
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo