A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
problem using validator framework with DispatchAction
Joined: Mar 14, 2008
Mar 14, 2008 03:01:00
I'm using Struts 1.1 validation framework. There are two buttons
in my form: submit and cancel. They are both html:submit.
validate the entries in the form first, then the form is submit.
I tried html:cancel for the cancel button and found no difference.
button is click?
Joined: Feb 15, 2005
Mar 14, 2008 10:06:00
Just use the html:cancel tag instead of html:submit. This tag will cause validations to be bypassed.
It is sorta covered in the
JavaRanch Style Guide
subject: problem using validator framework with DispatchAction
How to disable the validation when th Cancel button is clicked (usingStrut validator)
How to ByPass the validation framework
Clear a JTextField
How to do it in Struts, pls. help!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013