| < Day Day Up > |
|
The <html:form /> tag is used to create an HTML form. The form implicitly interacts with the named ActionForm bean to pre-populate the input fields values with the matching data members of the named bean. The <html:form /> tag has a body type of JSP and supports 13 attributes, described in Table 16.7.
Attribute | Description |
---|---|
action | Identifies the URL to which this form is submitted. This value is also used to select an ActionMapping described by an <action> element in the struts-config.xml file. (required) |
enctype | Identifies the content encoding of the request submitted by this form. If you are using the file tag, then this attribute must be set to multipart/form-data. If this value is not indicated, then the default value is determined by the client browser. (optional) |
focus | Identifies the input field name to which initial focus is assigned. (optional) |
focusIndex | An array of input element ids representing their associated tab order. (optional) |
method | Identifies the HTTP request method used when submitting the form request (GET or POST). The default method is POST. (optional) |
onreset | Specifies a JavaScript function that is executed if the form is reset. (optional) |
onsubmit | Specifies a JavaScript function that is executed if the form is submitted. (optional) |
scope | Specifies the scope of the form bean associated with this input form. (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) |
target | Specifies the frame window target to which this form is submitted. (optional) |
type | Provides the fully qualified class name of the ActionForm bean to be created, if no such bean is found in the named scope. (optional) |
| < Day Day Up > |
|