org.springframework.web.servlet.tags

Class NestedPathTag

  • All Implemented Interfaces:
    java.io.Serializable, IterationTag, JspTag, Tag, TryCatchFinally


    public class NestedPathTag
    extends TagSupport
    implements TryCatchFinally

    The <nestedPath> tag supports and assists with nested beans or bean properties in the model. Exports a "nestedPath" variable of type String in request scope, visible to the current page and also included pages, if any.

    The BindTag will auto-detect the current nested path and automatically prepend it to its own path to form a complete path to the bean or bean property.

    This tag will also prepend any existing nested path that is currently set. Thus, you can nest multiple nested-path tags.

    Attribute Summary
    Attribute Required? Runtime Expression? Description
    path true true Set the path that this tag should apply. E.g. 'customer' to allow bind paths like 'address.street' rather than 'customer.address.street'.
    Since:
    1.1
    Author:
    Juergen Hoeller
    See Also:
    Serialized Form
    • Field Detail

      • NESTED_PATH_VARIABLE_NAME

        public static final java.lang.String NESTED_PATH_VARIABLE_NAME
        Name of the exposed variable within the scope of this tag: "nestedPath".
        See Also:
        Constant Field Values
    • Constructor Detail

      • NestedPathTag

        public NestedPathTag()