html
Tag button


Render A Button Input Field

Renders an HTML <input> element of type button, populated from the specified value or the content of this tag body. This tag is only valid when nested inside a form tag body.

If a graphical button is needed (a button with an image), then the image tag is more appropriate.



Tag Information
Tag Classorg.apache.struts.taglib.html.ButtonTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
accesskeyfalsetruejava.lang.String

The keyboard character used to move focus immediately to this element.

altfalsetruejava.lang.String

The alternate text for this element.

altKeyfalsetruejava.lang.String

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

bundlefalsetruejava.lang.String

The servlet context attributes key for the MessageResources instance to use. If not specified, defaults to the application resources configured for our action servlet.

Since:
Struts 1.2.5
dirfalsetruejava.lang.String

The direction for weak/neutral text for this element.

Since:
Struts 1.3.6
disabledfalsetrueboolean

Set to true if this input field should be disabled.

indexedfalsetrueboolean

Valid only inside of logic:iterate tag. If true then name of the html tag will be rendered as "propertyName[34]". Number in brackets will be generated for every iteration and taken from ancestor logic:iterate tag.

langfalsetruejava.lang.String

The language code for this element.

Since:
Struts 1.3.6
onblurfalsetruejava.lang.StringJavaScript event handler executed when this element loses input focus.
onchangefalsetruejava.lang.StringJavaScript event handler executed when this element loses input focus and its value has changed.
onclickfalsetruejava.lang.StringJavaScript event handler executed when this element receives a mouse click.
ondblclickfalsetruejava.lang.StringJavaScript event handler executed when this element receives a mouse double click.
onfocusfalsetruejava.lang.StringJavaScript event handler executed when this element receives input focus.
onkeydownfalsetruejava.lang.StringJavaScript event handler executed when this element has focus and a key is depressed.
onkeypressfalsetruejava.lang.StringJavaScript event handler executed when this element has focus and a key is depressed and released.
onkeyupfalsetruejava.lang.StringJavaScript event handler executed when this element has focus and a key is released.
onmousedownfalsetruejava.lang.StringJavaScript event handler executed when this element is under the mouse pointer and a mouse button is depressed.
onmousemovefalsetruejava.lang.StringJavaScript event handler executed when this element is under the mouse pointer and the pointer is moved.
onmouseoutfalsetruejava.lang.StringJavaScript event handler executed when this element was under the mouse pointer but the pointer was moved outside the element.
onmouseoverfalsetruejava.lang.StringJavaScript event handler executed when this element was not under the mouse pointer but the pointer is moved inside the element.
onmouseupfalsetruejava.lang.StringJavaScript event handler executed when this element is under the mouse pointer and a mouse button is released.
propertytruetruejava.lang.StringName of the request parameter that will be included with this submission, set to the specified value.
stylefalsetruejava.lang.StringCSS styles to be applied to this HTML element.
styleClassfalsetruejava.lang.StringCSS stylesheet class to be applied to this HTML element (renders a "class" attribute).
styleIdfalsetruejava.lang.StringIdentifier to be assigned to this HTML element (renders an "id" attribute).
tabindexfalsetruejava.lang.StringThe tab order (ascending positive integers) for this element.
titlefalsetruejava.lang.String

The advisory title for this element.

titleKeyfalsetruejava.lang.String

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

valuefalsetruejava.lang.StringValue 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 "Click"]

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.