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:[EMAIL PROTECTED]
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
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


________________________________________________________________________
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to