Returns the query parameter name under which a cancel button press
must be reported if form validation is to be skipped.
- Returns
-
The value of
org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY
If a request contains a request parameter with key equal to the return value
of this method, then automatic form validation is skipped. A typical application
case is to use this magic string for the name attribute of a cancel button in a form.
If this button is pressed, automatic form validation is skipped. If automatic form
validation is not used, this magic string is irrelevant.
## A cancel button
<input type="submit" name="$form.getCancelName()" value="Cancel">
## Can also be written as
<input type="submit" name="$form.cancelName" value="Cancel">
|
|
This produces the following output:
<input type="submit" name="org.apache.struts.taglib.html.CANCEL"
value="Cancel">
|
|
|