| < Day Day Up > |
|
The <html:image /> tag is used to render an HTML <input> element with an input type of image. The image URL generated for this image is calculated using the value identified by the src or page attributes. You must specify one of the src or page attributes. The <html:image /> has a body type of JSP and supports 34 attributes, described in Table 16.10.
Attribute | Description |
---|---|
accessKey | Identifies a keyboard character to be used to immediately move focus to the HTML element defined by this tag. (optional) |
align | Defines the image alignment of this image. (optional) |
alt | Defines an alternate text string for this element. (optional) |
altKey | Defines a resources key (to be retrieved from a resource bundle) that references an alternate text string for this element. (optional) |
border | Defines the width, in pixels, of the image border. (optional) |
bundle | Specifies a MessageResources key of the resource bundle defined in the struts-config <message-resource> element. The default key is ApplicationResources. (optional) |
disabled | If set to true, causes this HTML input element to be disabled. The default value is false. (optional) |
indexed | If set to true, then the name of the HTML tag is rendered as propertyName[indexnumber]. The [] characters surrounding the index are generated for every iteration and taken from its ancestor, the <logic:iterate /> tag. The indexed attribute is valid only when the tag using it is nested with a <logic:iterate /> tag. The default value is false. (optional) |
locale | Specifies the session attribute containing the Locale instance of the current request. This Locale is then used to select Locale-specific text messages. (optional) |
onblur | Specifies a JavaScript function that is executed when the containing element loses its focus. (optional) |
onchange | Specifies a JavaScript function that is executed when this element loses input focus and its value has changed. (optional) |
onclick | Specifies a JavaScript function that is executed when this element receives a mouse click. (optional) |
ondblclick | Specifies a JavaScript function that is executed when this element receives a mouse double-click. (optional) |
onfocus | Specifies a JavaScript function that is executed when this element receives input focus. (optional) |
onkeydown | Specifies a JavaScript function that is executed when this element has focus and a key is pressed. (optional) |
onkeypress | Specifies a JavaScript function that is executed when this element has focus and a key is pressed and released. (optional) |
onkeyup | Specifies a JavaScript function that is executed when this element has focus and a key is released. (optional) |
onmousedown | Specifies a JavaScript function that is executed when this element is under the mouse pointer and a mouse button is pressed. (optional) |
onmousemove | Specifies a JavaScript function that is executed when this element is under the mouse pointer and the pointer is moved. (optional) |
onmouseout | Specifies a JavaScript function that is executed when this element is under the mouse pointer but the pointer is then moved outside the element. (optional) |
onmouseover | Specifies a JavaScript function that is executed when this element is not under the mouse pointer but the pointer is then moved inside the element. (optional) |
onmouseup | Specifies a JavaScript function that is executed when this element is under the mouse pointer and a mouse button is released. (optional) |
page | Provides the application-relative path of the image source used by this input tag. (optional) |
pageKey | Specifies a resources key (to be retrieved from a resource bundle) that references an application-relative path of the image source used by this input tag. (optional) |
property | Identifies the parameter names of the image tag. The parameter names will appear as property.x and property.y, with the x and y characters representing the coordinates of the mouse click for the image. (optional) |
src | Specifies a URL that references the location of the image source used by this input tag. (optional) |
srcKey | Specifies a resources key (to be retrieved from a resource bundle) that references a URL pointing to the location of the image source used by this input tag. (optional) |
style | Specifies a Cascading Style Sheet style to apply to this HTML element. (optional) |
styleClass | Specifies a Cascading Style Sheet class to apply to this HTML element. (optional) |
styleId | Specifies an HTML identifier to be associated with this HTML element. (optional) |
tabindex | Identifies the tab order of this element in relation to the other elements of the containing Form. (optional) |
title | Specifies the advisory title for this HTML element. (required) |
titleKey | Specifies a resources key (to be retrieved from a resource bundle) that references a title string for this element. (optional) |
value | Specifies the label to be placed on this button. (optional) |
The <html:image /> tag must be nested inside the body of an <html:form /> tag.
| < Day Day Up > |
|