|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.ivata.mask.web.tag.format.FormatDateTag
This class wraps the DateFormatter class, so that
you can call DateFormatter.format as a JSP tag.
Tag attributes:
| attribute | reqd. | param. class | description |
|---|---|---|---|
| date | true | com.ivata.util.DateFormatter |
Sets the date to be formatted into a string. |
| formatter | true | com.ivata.util.DateFormatter |
Sets the formatter which actually does the formatting. |
| Field Summary |
| 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 |
| Constructor Summary | |
FormatDateTag()
|
|
| Method Summary | |
int |
doStartTag()
This method is called when the JSP engine encounters the start tag, after the attributes are processed. |
java.util.Date |
getDate()
Get the date which will be formatted into a string when this tag is used. |
DateFormatter |
getFormatter()
This date formatter will do all the hard work. |
void |
setDate(java.util.Date dateParam)
Set the date which will be formatted into a string when this tag is used. |
void |
setFormatter(DateFormatter formatterParam)
This date formatter will do all the hard work. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormatDateTag()
| Method Detail |
public int doStartTag()
throws javax.servlet.jsp.JspException
This method is called when the JSP engine encounters the start tag, after the attributes are processed.
Scripting variables (if any) have their values set here.
SKIP_BODY since this tag has no body.
javax.servlet.jsp.JspException - if any of the attributes have invalid values.
javax.servlet.jsp.JspException - if there is any excpetion calling
out.print.public final java.util.Date getDate()
Get the date which will be formatted into a string when this tag is used.
public final DateFormatter getFormatter()
This date formatter will do all the hard work.
public final void setDate(java.util.Date dateParam)
Set the date which will be formatted into a string when this tag is used.
dateParam - the new value of the date to be formatted into a string.public final void setFormatter(DateFormatter formatterParam)
This date formatter will do all the hard work.
formatterParam - new value of date formatter.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||