📄 struts-html.html
字号:
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">style</td>
<td>
CSS styles to be applied to this HTML element.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">styleClass</td>
<td>
CSS stylesheet class to be applied to this HTML element
(renders a "class" attribute).
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">styleId</td>
<td>
Identifier to be assigned to this HTML element (renders
an "id" attribute).
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">tabindex</td>
<td>
The tab order (ascending positive integers) for this element.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">title</td>
<td>
<p>The advisory title for this element.</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">titleKey</td>
<td>
<p>The message resources key for the advisory title
for this element.</p>
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">value</td>
<td>
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]
</td>
</tr>
</table>
</div>
<p>
<a href="#top">Back to top</a>
</p>
<h3 id="checkbox">
<strong>checkbox</strong> -
Render A Checkbox Input Field
</h3>
<div class="indent">
<p>Renders an HTML <input> element of type
<code>checkbox</code>, populated from the specified
value or the specified property of the bean associated
with our current form. This tag is only valid when
nested inside a form tag body.</p>
<p>
<strong>NOTE</strong>: The underlying property value
associated with this field should be of type <code>boolean</code>,
and any <code>value</code> you specify should correspond to one
of the Strings that indicate a true value ("true", "yes", or
"on"). If you wish to utilize a set of related String values,
consider using the <code>multibox</code> tag.</p>
<p>
<strong>WARNING</strong>: In order to correctly
recognize unchecked checkboxes, the
<code>ActionForm</code> bean associated with this form
must include a statement setting the corresponding
boolean property to <code>false</code> in the
<code>reset()</code> method.</p>
<table class="tag-attributes">
<thead>
<tr>
<th class="attribute">Attribute Name</th>
<th>Description</th>
</tr>
</thead>
<tr class="evenRow">
<td align="center">accesskey</td>
<td>
The keyboard character used to move focus immediately to this
element.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">alt</td>
<td>
<p>The alternate text for this element.</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">altKey</td>
<td>
<p>The message resources key of the alternate text for this
element.</p>
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">bundle</td>
<td>
The servlet context attributes key for the MessageResources
instance to use. If not specified, defaults to the
application resources configured for our action servlet.
<p class="since">Since: Struts 1.2.5</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">disabled</td>
<td>
Set to <code>true</code> if this input field should be
disabled.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">errorKey</td>
<td>
<p>Name of the request scope bean under which our error messages
have been stored. If not present, the name specified by the
<code>Globals.ERROR_KEY</code> constant string will be used.</p>
<p>
<strong>N.B.</strong> This is used in conjunction with the
<code>errorStyle</code>, <code>errorStyleClass</code> and
<code>errorStyleId</code> attributes and should be set to
the same value as the <code>name</code> attribute on the
<html:errors/> tag.</p>
<p class="since">Since: Struts 1.2.5</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">errorStyle</td>
<td>
<p>CSS styles to be applied to this HTML element if
an error exists for it.</p>
<p>
<strong>N.B.</strong> If present, this overrides the
<code>style</code> attribute in the event of an error.</p>
<p class="since">Since: Struts 1.2.5</p>
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">errorStyleClass</td>
<td>
<p>CSS stylesheet class to be applied to this HTML element if
an error exists for it (renders a "class" attribute).</p>
<p>
<strong>N.B.</strong> If present, this overrides the
<code>styleClass</code> attribute in the event of an error.</p>
<p class="since">Since: Struts 1.2.5</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">errorStyleId</td>
<td>
<p>Identifier to be assigned to this HTML element if
an error exists for it (renders an "id" attribute).</p>
<p>
<strong>N.B.</strong> If present, this overrides the
<code>styleId</code> attribute in the event of an error.</p>
<p class="since">Since: Struts 1.2.5</p>
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">indexed</td>
<td>
Valid only inside of <code>logic:iterate</code> tag.
If <code>true</code> then name of the html tag will be rendered as
"id[34].propertyName". Number in brackets will be generated
for every iteration and taken from ancestor logic:iterate tag.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">name</td>
<td>
The attribute name of the bean whose properties are consulted when
rendering the current value of this input field. If not specified,
the bean associated with the form tag we are nested within is utilized.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">onblur</td>
<td>
JavaScript event handler executed when this element loses input
focus.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">onchange</td>
<td>
JavaScript event handler executed when this element loses input
focus and its value has changed.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">onclick</td>
<td>
JavaScript event handler executed when this element receives a
mouse click.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">ondblclick</td>
<td>
JavaScript event handler executed when this element receives a
mouse double click.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">onfocus</td>
<td>
JavaScript event handler executed when this element receives input
focus.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">onkeydown</td>
<td>
JavaScript event handler executed when this element has focus and a
key is depressed.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">onkeypress</td>
<td>
JavaScript event handler executed when this element has focus and a
key is depressed and released.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">onkeyup</td>
<td>
JavaScript event handler executed when this element has focus and a
key is released.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">onmousedown</td>
<td>
JavaScript event handler executed when this element is under the mouse
pointer and a mouse button is depressed.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">onmousemove</td>
<td>
JavaScript event handler executed when this element is under the
mouse pointer and the pointer is moved.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">onmouseout</td>
<td>
JavaScript event handler executed when this element was under the
mouse pointer but the pointer was moved outside the element.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">onmouseover</td>
<td>
JavaScript event handler executed when this element was not under
the mouse pointer but the pointer is moved inside the element.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">onmouseup</td>
<td>
JavaScript event handler executed when this element is under the
mouse pointer and a mouse button is released.
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">property</td>
<td>
Name of the request parameter that will be included with this
submission, set to the specified value.
[Required]
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">style</td>
<td>
<p>CSS styles to be applied to this HTML element.</p>
<p>
<strong>N.B.</strong> If present, the <code>errorStyle</code>
overrides this attribute in the event of an error for the element.</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">styleClass</td>
<td>
<p>CSS stylesheet class to be applied to this HTML element
(renders a "class" attribute).</p>
<p>
<strong>N.B.</strong> If present, the <code>errorStyleClass</code>
overrides this attribute in the event of an error for the element.</p>
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">styleId</td>
<td>
<p>Identifier to be assigned to this HTML element (renders
an "id" attribute).</p>
<p>
<strong>N.B.</strong> If present, the <code>errorStyleId</code>
overrides this attribute in the event of an error for the element.</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">tabindex</td>
<td>
The tab order (ascending positive integers) for this element.
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">title</td>
<td>
<p>The advisory title for this element.</p>
[RT Expr]
</td>
</tr>
<tr class="evenRow">
<td align="center">titleKey</td>
<td>
<p>The message resources key for the advisory title
for this element.</p>
[RT Expr]
</td>
</tr>
<tr class="oddRow">
<td align="center">value</td>
<td>
The value to be transmitted if this checkbox is
checked when the form is submitted. If not specified,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -