Renders an HTML <form> element whose contents are described
by the body content of this tag. The form implicitly interacts
with the specified request scope or session scope bean to populate
the input fields with the current property values from the bean.
The form bean is located, and created if necessary, based on the
form bean specification for the associated ActionMapping
.
Attribute Name |
Description |
action |
The URL to which this form will be submitted. This
value is also used to select the ActionMapping we are
assumed to be processing, from which we can identify
the appropriate form bean and scope.
If you are using extension mapping for selecting the
controller servlet, this value should be equal to the
path attribute of the corresponding
<action> element, optionally
followed by the correct extension suffix.
If you are using path mapping to select the
controller servlet, this value should be exactly equal
to the path attribute of the corresponding
<action> element.
[Required]
[RT Expr]
|
acceptCharset |
The list of character encodings for input data that the server should
accept.
Since: Struts 1.2.2
[RT Expr]
|
enctype |
The content encoding to be used to submit this form, if the method
is POST. This must be set to "multipart/form-data" if you are using
the file tag to enable file upload. If not specified, the browser
default (normally "application/x-www-form-urlencoded") is used.
[RT Expr]
|
focus |
The field name (among the fields on this form) to which initial
focus will be assigned with a JavaScript function. If not specified,
no special JavaScript for this purpose will be rendered.
[RT Expr]
|
focusIndex |
If the focus field is a field array, such as a radio button group, you can
specify the index in the array to receive focus.
Since: Struts 1.1
[RT Expr]
|
method |
The HTTP method that will be used to submit this request
(GET, POST). [POST]
[RT Expr]
|
onreset |
JavaScript event handler executed if the form is reset.
[RT Expr]
|
onsubmit |
JavaScript event handler executed if the form is submitted.
[RT Expr]
|
scriptLanguage |
The form's focus <script> element will not contain a language attribute
when this is set to false. The default is true but this property is ignored
in XHMTL mode.
Since: Struts 1.2
[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]
|
target |
Window target to which this form is submitted, such as
for use in framed presentations.
[RT Expr]
|