Have the submit button has a form property. Then when validating only valid
if submit button was hit.

e.g. if ((this.getSubmitButton() != null) && (!(
this.getSubmitButton().equals("")))){
       ... validation code
       }
  -----Original Message-----
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 24 February 2004 16:21
  To: [EMAIL PROTECTED]
  Subject: Validation doubt?



  Hi,
          I do not want to validate my form when the user clicks the Cancel
button.
  For your information im not using javascript validation [i.e my doesnt've
<html:javascript formname="someform">]
  how to do this?

  Subramaniam Olaganthan
  Tata Consultancy Services
  Mailto: [EMAIL PROTECTED]
  Website: http://www.tcs.com

Reply via email to