com.caucho.jstl.rt
Class FmtParseDateTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.caucho.jstl.rt.FmtParseDateTag
All Implemented Interfaces:
java.io.Serializable, BodyTag, IterationTag, JspTag, Tag

public class FmtParseDateTag
extends BodyTagSupport

Formats an i18n date and prints it.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
 
Constructor Summary
FmtParseDateTag()
           
 
Method Summary
 int doEndTag()
          Process the tag.
static int getDateStyle(java.lang.String style)
           
protected  java.text.DateFormat getFormat()
           
 void setDateStyle(java.lang.String style)
          Sets the date style (full, short, etc.)
 void setParseLocale(java.lang.Object locale)
          Sets the parse locale
 void setPattern(java.lang.String pattern)
          Sets the formatting pattern.
 void setScope(java.lang.String scope)
          Sets the variable scope.
 void setTimeStyle(java.lang.String style)
          Sets the time style (full, short, etc.)
 void setTimeZone(java.lang.Object zone)
          Sets the time zone.
 void setType(java.lang.String type)
          Sets the date/time type.
 void setValue(java.lang.String value)
          Sets the formatting value.
 void setVar(java.lang.String var)
          Sets the variable name.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

FmtParseDateTag

public FmtParseDateTag()
Method Detail

setValue

public void setValue(java.lang.String value)
Sets the formatting value.

Parameters:
value - the string value.

setType

public void setType(java.lang.String type)
Sets the date/time type.

Parameters:
type - the date/time type.

setDateStyle

public void setDateStyle(java.lang.String style)
Sets the date style (full, short, etc.)

Parameters:
style - the date style

setTimeStyle

public void setTimeStyle(java.lang.String style)
Sets the time style (full, short, etc.)

Parameters:
style - the time style

setPattern

public void setPattern(java.lang.String pattern)
Sets the formatting pattern.

Parameters:
pattern - the formatting pattern.

setTimeZone

public void setTimeZone(java.lang.Object zone)
Sets the time zone.

Parameters:
zone - the time zone expression

setParseLocale

public void setParseLocale(java.lang.Object locale)
Sets the parse locale

Parameters:
locale - the locale

setVar

public void setVar(java.lang.String var)
Sets the variable name.

Parameters:
var - the variable name to store the value in.

setScope

public void setScope(java.lang.String scope)
Sets the variable scope.

Parameters:
scope - the variable scope to store the value in.

doEndTag

public int doEndTag()
             throws JspException
Process the tag.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
EVAL_PAGE to continue the page SKIP_PAGE to stop.
Throws:
JspException

getFormat

protected java.text.DateFormat getFormat()
                                  throws JspException
Throws:
JspException

getDateStyle

public static int getDateStyle(java.lang.String style)
                        throws JspException
Throws:
JspException