java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
com.RuntimeCollective.webapps.tag.DateDisplayTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class DateDisplayTag
- extends org.apache.struts.taglib.html.BaseHandlerTag
A custom JSP tag that formats a Date for display. If 'name' is null, then the current date will be displayed; otherwise the date is taken from a bean.
-
name - The name of the bean (in any scope) that holds the Date. [Optional].
-
property - The property of the named bean that holds the Date. [Optional, but mandatory if 'name' is set].
-
formatString - The format string to use when formatting the date (if left blank, will use "EEE, MMM d, yyyy" -- see the javadoc for java.text.SimpleDateFormat for more details) [Optional].
- Version:
- $Id: DateDisplayTag.java,v 1.10 2003/09/30 15:13:17 joe Exp $
| Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dateFormatter
public static java.text.SimpleDateFormat dateFormatter
name
protected java.lang.String name
- The name of the bean (in any scope) that holds the Date. [Optional].
property
protected java.lang.String property
- The property of the named bean that holds the Date. [Optional, but mandatory if 'name' is set].
formatString
protected java.lang.String formatString
- The formatString to use when formatting the date (if left blank, will use "EEE, MMM d, yyyy") [Optional].
DateDisplayTag
public DateDisplayTag()
getName
public java.lang.String getName()
- Get The name of the bean (in any scope) that holds the Date. [Optional].
setName
public void setName(java.lang.String name)
- Set The name of the bean (in any scope) that holds the Date. [Optional].
getProperty
public java.lang.String getProperty()
- Get the property of the named bean that holds the Date. [Optional, but mandatory if 'name' is set].
setProperty
public void setProperty(java.lang.String property)
- Set the property of the named bean that holds the Date. [Optional, but mandatory if 'name' is set].
getFormatString
public java.lang.String getFormatString()
- Get the formatString to use when formatting the date
setFormatString
public void setFormatString(java.lang.String formatString)
- Set the formatString to use when formatting the date
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport
- Default processing of the start tag returning EVAL_BODY_BUFFERED.
getStartTagText
public static java.lang.String getStartTagText(java.util.Date date,
java.lang.String formatString)
release
public void release()
- Description copied from class:
org.apache.struts.taglib.html.BaseHandlerTag
- Release any acquired resources.