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
Tried javascript and it works fine. The reasons I try not to use
javascript :
1. since struts is used, i thought all control should be visible in the
controller and not as javascripts in the JSP.
2. User might turn off javascript.
sebastian ho
On Tue, 2004-08-17 at 15:57, Aru wrote:
> Sebestia
Hi
I think my situtation is kinda unique..
I have three buttons in a single form and my Action extends
LookupDispatchAction.
In my ExperimentForm (actionform), how do I disable validate if 'back'
is clicked?
struts-config.xml
--
CreateExpe
Sebestian,
Where does control go when u click Back button? If this has to do 'browser
like' back action, just call javascript. Why do u call struts action? Any
specific reason?
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:44 PM
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
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 PROTECTED]
Sent: Tuesday, August 17, 2004 1:14 PM
To: Struts Users Mailing List
Subject: Disable v
10 matches
Mail list logo