This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes problem using validator framework with DispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem using validator framework with DispatchAction" Watch "problem using validator framework with DispatchAction" New topic
Author

problem using validator framework with DispatchAction

Mano Jena
Greenhorn

Joined: Mar 14, 2008
Posts: 1
I'm using Struts 1.1 validation framework. There are two buttons
in my form: submit and cancel. They are both html:submit.

When "submit" is clicked, the JavaScript
validate the entries in the form first, then the form is submit.

When "cancel" is clicked, the javascript still validates
the form. I want to bypass the JavaScript validation in this case.
I tried html:cancel for the cancel button and found no difference.

How to bypass client side JavaScript validation when "cancel"
button is click?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Just use the html:cancel tag instead of html:submit. This tag will cause validations to be bypassed.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem using validator framework with DispatchAction