struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Ying <>
Subject Re: Cancel in a form re: bypass Validation
Date Fri, 10 Dec 2010 00:14:04 GMT
I think Michal was right.

If you don't want execute validation for some Action Method, the
annotation "@SkipValidation" is a good solution.

And, in your case,
I noticed that, your server side action is doing nothing when the
[cancel] button clicked.
I suggest you can put a html Link for your [cancel] button, instead of
a submit button.

So, when it be clicked, browser will jump to the next page, and your
form will not be submitted.
And of cause, the validation will not be executed.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message