Hello,

I am using Struts 1.1 on Tomcat 4.1.24. I have a question regarding validation.

I have a form and validation rules that apply to this form. In my JSP, I have 
three buttons, namely CANCEL, SUBMIT, BACK (BACK meaning: I will come back 
later). My problem now is: I want to validate the fields of my form, but this 
validation should only occur if I press the SUBMIT button. It must not occur on 
CANCEL or BACK (since it does not make too much sense to force the user to give 
his address information before returning to the original place he came from).

Is there a declarative way to skip the validation for the BACK button, or would 
I really have to write my own validate() method.

Any help is really appreciated.

Thanks,
Gunnar Schmitz




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

Reply via email to