struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ady Das O'Toole <ady.daso'to...@camelotinteractive.com>
Subject RE: Validation and Reset
Date Fri, 21 Mar 2003 15:32:36 GMT
You could remove the validate call in your form and call the form's validate
method in your Action depending on whether it was a submit or reset.


//validate form
ActionErrors errors = new ActionErrors();
errors = yourForm.validate(mapping, request);

//put the errors object in request
saveErrors(request, errors);

//forward to input

-----Original Message-----
From: Weber, Jeremy [mailto:JWeber@Eventra.com]
Sent: 21 March 2003 14:27
To: 'Struts Users Mailing List' (E-mail)
Subject: Validation and Reset


Hello all!

It seems when I click my reset button my form is validated.  Is there anyway
to keep this from happening?
I am using <html:image> and the reset methodology here
http://www.husted.com/struts/tips/001.html


Jeremy Weber                    
Eventra, Inc.                       
Sr. SCM Specialist
203-882-9988 x2631
jweber@eventra.com

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


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


**********************************************************************
The information contained in this e-mail may be confidential. It is intended only for for
the use
of the named recipient. If you are not the named recipient please delete this e-mail. If you
have
received this e-mail and are not the named recipient, any disclosure, reproduction, distribution
or other dissemination or use of the information contained in this e-mail is strictly prohibited.
E-mail transmission cannot be guaranteed to be secure or error free as information could be

intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.  
The sender therefore does not accept liability for any errors or omissions in the contents
of this 
message which arise as a result of e-mail transmission.  If verification is required please

request a hard copy version.
Registered Office:
Camelot Group plc
Tolpits Lane
Watford
WD18 9RN
Tel: 01923 425000
Registered in England and Wales
No. 2822203
**********************************************************************


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


Mime
View raw message