类 TransformTag

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

    public class TransformTag
    extends HtmlEscapingAwareTag
    The <transform> tag provides transformation for reference data values from controllers and other objects inside a spring:bind tag (or a data-bound form element tag from Spring's form tag library).

    The BindTag has a PropertyEditor that it uses to transform properties of a bean to a String, usable in HTML forms. This tag uses that PropertyEditor to transform objects passed into this tag.

    Attribute Summary
    AttributeRequired?Runtime Expression?Description
    htmlEscapefalsetrueSet HTML escaping for this tag, as boolean value. Overrides the default HTML escaping setting for the current page.
    scopefalsetrueThe scope to use when exported the result to a variable. This attribute is only used when var is also set. Possible values are page, request, session and application.
    valuetruetrueThe value to transform. This is the actual object you want to have transformed (for instance a Date). Using the PropertyEditor that is currently in use by the 'spring:bind' tag.
    varfalsetrueThe string to use when binding the result to the page, request, session or application scope. If not specified, the result gets outputted to the writer (i.e. typically directly to the JSP).
    从以下版本开始:
    20.09.2003
    作者:
    Alef Arendsen, Juergen Hoeller
    另请参阅:
    BindTag, 序列化表格