Class FormatDateSupport

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
    Direct Known Subclasses:
    FormatDateTag, FormatDateTag

    public abstract class FormatDateSupport
    extends javax.servlet.jsp.tagext.TagSupport
    Support for tag handlers for <formatDate>, the date and time formatting tag in JSTL 1.0.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String DATE  
      protected java.lang.String dateStyle  
      private static java.lang.String DATETIME  
      protected java.lang.String pattern  
      private int scope  
      private static java.lang.String TIME  
      protected java.lang.String timeStyle  
      protected java.lang.Object timeZone  
      protected java.lang.String type  
      protected java.util.Date value  
      private java.lang.String var  
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.text.DateFormat createFormatter​(java.util.Locale loc, java.lang.String pattern)  
      int doEndTag()  
      private void init()  
      void release()  
      void setScope​(java.lang.String scope)  
      void setVar​(java.lang.String var)  
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        protected java.util.Date value
      • type

        protected java.lang.String type
      • pattern

        protected java.lang.String pattern
      • timeZone

        protected java.lang.Object timeZone
      • dateStyle

        protected java.lang.String dateStyle
      • timeStyle

        protected java.lang.String timeStyle
      • var

        private java.lang.String var
      • scope

        private int scope
    • Constructor Detail

      • FormatDateSupport

        public FormatDateSupport()
    • Method Detail

      • init

        private void init()
      • setVar

        public void setVar​(java.lang.String var)
      • setScope

        public void setScope​(java.lang.String scope)
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.TagSupport
        Throws:
        javax.servlet.jsp.JspException
      • release

        public void release()
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class javax.servlet.jsp.tagext.TagSupport
      • createFormatter

        private java.text.DateFormat createFormatter​(java.util.Locale loc,
                                                     java.lang.String pattern)
                                              throws javax.servlet.jsp.JspException
        Throws:
        javax.servlet.jsp.JspException