public class FormatDateTag extends BodyTagSupport
bodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
FormatDateTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Process the tag.
|
static int |
getDateStyle(java.lang.String style) |
void |
setDateStyle(java.lang.String style)
Sets the date style (full, short, etc.)
|
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.Object value)
Sets the formatting value.
|
void |
setVar(java.lang.String var)
Sets the variable name.
|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, setPageContext, setParent
public void setValue(java.lang.Object value)
value
- the date value.public void setType(java.lang.String type)
type
- the date/time type.public void setDateStyle(java.lang.String style)
style
- the date stylepublic void setTimeStyle(java.lang.String style)
style
- the time stylepublic void setPattern(java.lang.String pattern)
pattern
- the formatting pattern.public void setTimeZone(java.lang.Object zone)
zone
- the time zone expressionpublic void setVar(java.lang.String var)
var
- the variable name to store the value in.public void setScope(java.lang.String scope)
scope
- the variable scope to store the value in.public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
public static int getDateStyle(java.lang.String style) throws JspException
JspException