On 9/6/06, Vaylee Mckenzie-Daniels (VA) <[EMAIL PROTECTED]> wrote:



> I am struggling to find resources on how to enable the validation
> only when submit is selected. Validation should not be done when
> cancel is selected.

If you use JSP for the view part of your app, then use <html:cancel>
to render Cancel button. The key that it submits is processed by
Struts as cancel action and no validation is performed (launch HTTP
sniffer to see value submitted by cancel button).

Or you can turn autovalidation off and validate input data whenever you need.

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

Reply via email to