image - Render an input tag of type "image"

Renders an HTML <input> tag of type "image". The base URL for this image is calculated directly based on the value specified in the src or page attributes, or indirectly by looking up a message resource string based on the srcKey or pageKey attributes. You must specify exactly one of these attributes.

If you would like to obtain the coordinates of the mouse click that submitted this request, see the information below on the property attribute.

This tag is only valid when nested inside a form tag body.

Attribute Name Description
accesskey

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

[RT Expr]
align

The alignment option for this image.

DEPRECATED: The align attribute is deprecated in HTML 4.x. The suggested alternative is to use CSS. Please see http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.7.4 for more details.

[RT Expr]
alt

The alternate text for this image.

[RT Expr]
altKey

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

[RT Expr]
border

The width (in pixels) of the border around this image.

[RT Expr]
bundle

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

[RT Expr]
disabled Set to true if this input field should be disabled. [RT Expr]
indexed 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. [RT Expr]
locale

The session attribute key for the Locale used to select internationalized messages. If not specified, defaults to the Struts standard value.

[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]
page

The module-relative path of the image for this input tag.

[RT Expr]
pageKey

The key of the message resources string specifying the module-relative path of the image for this input tag.

[RT Expr]
property

The property name of this image tag. The parameter names for the request will appear as "property.x" and "property.y", the x and y representing the coordinates of the mouse click for the image. A way of retrieving these values through a form bean is to define getX(), getY(), setX(), and setY() methods, and specify your property as a blank string (property="").

[RT Expr]
src

The source URL of the image for this input tag.

[RT Expr]
srcKey

The key of the message resources string specifying the source URL of the image for this input tag.

[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

The value that will be submitted if this image button is pressed.

[RT Expr]