cancel - Render a Cancel Button

Renders an HTML <input> element of type submit. This tag is only valid when nested inside a form tag body. Pressing of this submit button causes the action servlet to bypass calling the associated form bean validate() method. The action is called normally.

Attribute Name Description
accesskey The keyboard character used to move focus immediately to this element. [RT Expr]
alt

The alternate text for this element.

[RT Expr]
altKey

The message resources key of the alternate text for this element.

[RT Expr]
disabled Set to true if this input field should be disabled. [RT Expr]
onblur JavaScript event handler executed when this element loses input focus. [RT Expr]
onchange JavaScript event handler executed when this element loses input focus and its value has changed. [RT Expr]
onclick JavaScript event handler executed when this element receives a mouse click. [RT Expr]
ondblclick JavaScript event handler executed when this element receives a mouse double click. [RT Expr]
onfocus JavaScript event handler executed when this element receives input focus. [RT Expr]
onkeydown JavaScript event handler executed when this element has focus and a key is depressed. [RT Expr]
onkeypress JavaScript event handler executed when this element has focus and a key is depressed and released. [RT Expr]
onkeyup JavaScript event handler executed when this element has focus and a key is released. [RT Expr]
onmousedown JavaScript event handler executed when this element is under the mouse pointer and a mouse button is depressed. [RT Expr]
onmousemove JavaScript event handler executed when this element is under the mouse pointer and the pointer is moved. [RT Expr]
onmouseout JavaScript event handler executed when this element was under the mouse pointer but the pointer was moved outside the element. [RT Expr]
onmouseover JavaScript event handler executed when this element was not under the mouse pointer but the pointer is moved inside the element. [RT Expr]
onmouseup JavaScript event handler executed when this element is under the mouse pointer and a mouse button is released. [RT Expr]
property Name of the request parameter that will be included with this submission, set to the specified value. WARNING - If you set this attribute to a value other than the default, this will NOT be recognized as the cancel key by the Struts controller servlet or the Action.isCancelled() method. You will need to do your own cancel detection. [RT Expr]
style CSS styles to be applied to this HTML element. [RT Expr]
styleClass CSS stylesheet class to be applied to this HTML element (renders a "class" attribute). [RT Expr]
styleId Identifier to be assigned to this HTML element (renders an "id" attribute). [RT Expr]
tabindex The tab order (ascending positive integers) for this element. [RT Expr]
title

The advisory title for this element.

[RT Expr]
titleKey

The message resources key for the advisory title for this element.

[RT Expr]
value Value of the label to be placed on this button. This value will also be submitted as the value of the specified request parameter. [Body of this tag (if any), or "Cancel"] [RT Expr]