类 BindTag

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

    public class BindTag
    extends HtmlEscapingAwareTag
    implements EditorAwareTag
    The <bind> tag supports evaluation of binding errors for a certain bean or bean property. Exposes a "status" variable of type BindStatus, to both Java expressions and JSP EL expressions.

    Can be used to bind to any bean or bean property in the model. The specified path determines whether the tag exposes the status of the bean itself (showing object-level errors), a specific bean property (showing field errors), or a matching set of bean properties (showing all corresponding field errors).

    The Errors object that has been bound using this tag is exposed to collaborating tags, as well as the bean property that this errors object applies to. Nested tags such as the TransformTag can access those exposed properties.

    Attribute Summary
    AttributeRequired?Runtime Expression?Description

    htmlEscape

    false

    true

    Set HTML escaping for this tag, as boolean value. Overrides the default HTML escaping setting for the current page.

    ignoreNestedPath

    false

    true

    Set whether to ignore a nested path, if any. Default is to not ignore.

    path

    true

    true

    The path to the bean or bean property to bind status information for. For instance account.name, company.address.zipCode or just employee. The status object will exported to the page scope, specifically for this bean or bean property

    作者:
    Rod Johnson, Juergen Hoeller
    另请参阅:
    setPath(java.lang.String), 序列化表格