org.apache.taglibs.datetime
Class DateFormatSymbolsTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.taglibs.datetime.DateFormatSymbolsTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class DateFormatSymbolsTag
extends javax.servlet.jsp.tagext.TagSupport

This class implements an empty tag that allows you to use a custom symbols for date formating.

Must be specified attribute baseName that point to property file.

Property file contains key\value pair in such rule
# Month symbols change on custom
month=true
month0=January
month1=February
# Era symbols change on custom
era=true
era0=before
era1=after

Author:
Kozlov Igor
See Also:
Serialized Form

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
DateFormatSymbolsTag()
           
 
Method Summary
 int doStartTag()
           
 void release()
           
 void setBaseName(java.lang.String baseName)
           
 void setLocale(boolean locale)
           
 void setLocaleRef(java.lang.String localeRef)
           
 void setScope(java.lang.String scope)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Constructor Detail

DateFormatSymbolsTag

public DateFormatSymbolsTag()
Method Detail

setScope

public void setScope(java.lang.String scope)

setBaseName

public void setBaseName(java.lang.String baseName)

setLocale

public void setLocale(boolean locale)

setLocaleRef

public void setLocaleRef(java.lang.String localeRef)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag 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


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.