org.springframework.web.servlet.tags.form

Class AbstractFormTag

    • Constructor Detail

      • AbstractFormTag

        public AbstractFormTag()
    • Method Detail

      • evaluate

        @Nullable
        protected java.lang.Object evaluate(java.lang.String attributeName,
                                                      @Nullable
                                                      java.lang.Object value)
                                               throws JspException
        Evaluate the supplied value for the supplied attribute name.

        The default implementation simply returns the given value as-is.

        Throws:
        JspException
      • createTagWriter

        protected TagWriter createTagWriter()
        Create the TagWriter which all output will be written to. By default, the TagWriter writes its output to the JspWriter for the current PageContext. Subclasses may choose to change the Writer to which output is actually written.
      • getDisplayString

        protected java.lang.String getDisplayString(@Nullable
                                                    java.lang.Object value)
        Get the display value of the supplied Object, HTML escaped as required. This version is not PropertyEditor-aware.
      • getDisplayString

        protected java.lang.String getDisplayString(@Nullable
                                                    java.lang.Object value,
                                                    @Nullable
                                                    java.beans.PropertyEditor propertyEditor)
        Get the display value of the supplied Object, HTML escaped as required. If the supplied value is not a String and the supplied PropertyEditor is not null then the PropertyEditor is used to obtain the display value.
      • writeTagContent

        protected abstract int writeTagContent(TagWriter tagWriter)
                                        throws JspException
        Subclasses should implement this method to perform tag content rendering.
        Returns:
        valid tag render instruction as per Tag.doStartTag().
        Throws:
        JspException