This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Cancel button and bypassing JavaScript validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cancel button and bypassing JavaScript validation " Watch "Cancel button and bypassing JavaScript validation " New topic
Author

Cancel button and bypassing JavaScript validation

John King
Ranch Hand

Joined: Aug 27, 2002
Posts: 165
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cancel button and bypassing JavaScript validation
 
Similar Threads
Clear a JTextField
How to do it in Struts, pls. help!
How to disable the validation when th Cancel button is clicked (usingStrut validator)
Struts error message display
problem using validator framework with DispatchAction