类 FormTag

  • 所有已实现的接口:
    Serializable, DynamicAttributes, IterationTag, JspTag, Tag, TryCatchFinally, EditorAwareTag

    public class FormTag
    extends AbstractHtmlElementTag
    The <form> tag renders an HTML 'form' tag and exposes a binding path to inner tags for binding.

    Users should place the form object into the ModelAndView when populating the data for their view. The name of this form object can be configured using the "modelAttribute" property.

    Attribute Summary
    AttributeRequired?Runtime Expression?Description

    acceptCharset

    false

    true

    Specifies the list of character encodings for input data that is accepted by the server processing this form. The value is a space- and/or comma-delimited list of charset values. The client must interpret this list as an exclusive-or list, i.e., the server is able to accept any single character encoding per entity received.

    action

    false

    true

    HTML Required Attribute

    cssClass

    false

    true

    HTML Optional Attribute

    cssStyle

    false

    true

    HTML Optional Attribute

    dir

    false

    true

    HTML Standard Attribute

    enctype

    false

    true

    HTML Optional Attribute

    htmlEscape

    false

    true

    Enable/disable HTML escaping of rendered values.

    id

    false

    true

    HTML Standard Attribute

    lang

    false

    true

    HTML Standard Attribute

    method

    false

    true

    HTML Optional Attribute

    methodParam

    false

    true

    The parameter name used for HTTP methods other then GET and POST. Default is '_method'.

    modelAttribute

    false

    true

    Name of the model attribute under which the form object is exposed. Defaults to 'command'.

    name

    false

    true

    HTML Standard Attribute - added for backwards compatibility cases

    onclick

    false

    true

    HTML Event Attribute

    ondblclick

    false

    true

    HTML Event Attribute

    onkeydown

    false

    true

    HTML Event Attribute

    onkeypress

    false

    true

    HTML Event Attribute

    onkeyup

    false

    true

    HTML Event Attribute

    onmousedown

    false

    true

    HTML Event Attribute

    onmousemove

    false

    true

    HTML Event Attribute

    onmouseout

    false

    true

    HTML Event Attribute

    onmouseover

    false

    true

    HTML Event Attribute

    onmouseup

    false

    true

    HTML Event Attribute

    onreset

    false

    true

    HTML Event Attribute

    onsubmit

    false

    true

    HTML Event Attribute

    servletRelativeAction

    false

    true

    Action reference to be appended to the current servlet path

    target

    false

    true

    HTML Optional Attribute

    title

    false

    true

    HTML Standard Attribute

    从以下版本开始:
    2.0
    作者:
    Rob Harrop, Juergen Hoeller, Scott Andrews, Rossen Stoyanchev
    另请参阅:
    序列化表格