If you want the cancel button to take them to the previous page without doing anything, you could use the following:
<html:button styleClass="button" property="cancel" value="Cancel" onclick="javascript:history.go(-1);return false;"/> Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -----Original Message----- From: Patrice Thiebaud [mailto:patrice.thiebaud@;bea.com] Sent: Monday, November 04, 2002 9:01 AM To: [EMAIL PROTECTED] Subject: Cancel button with Javascript validation In a page with Javascript validation, I use the html:cancel tag. When I click on the Cancel button, the Javascript form validation function is called and an error message is displayed if I didn't enter valid information for the different fields of the form. So the cancellation is not taken into account. What can I do to bypass the Javascript validation when the Cancel button is clicked ? Thanks in advance. -------------------------------------------------------------- Patrice Thiebaud - Presales Senior Consultant BEA Systems - France Tour Manhattan 6 place de l'Iris 92095 PARIS La Défense Cédex Tel: 33 1 41 45 70 27 Mobile: 06 08 05 95 95 -------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>