struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Ho <sebasti...@bii.a-star.edu.sg>
Subject RE: Disable validate in actionForm
Date Tue, 17 Aug 2004 11:09:48 GMT
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 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 forward to
> appropriate place.
> 
> Note that if you use LookUpDispatchAction i think you may be able to
> avoid the javascript.
> 
> regards
> 
> Richard
> Richard Aukland
> 49 Ravensmere, Beccles, 
> Suffolk, UK. NR34 9BE
> Tel/Fax. +44(0)1502 470162
> Cell.    +44(0)7906 094578
> mailto:  richard@aukinfo.com
> http://www.aukinfo.com
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message