org.mmbase.bridge.jsp.taglib
Class LocaleTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.mmbase.bridge.jsp.taglib.ContextReferrerTag
org.mmbase.bridge.jsp.taglib.LocaleTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- ContentTag
- public class LocaleTag
- extends ContextReferrerTag
Provides Locale (language, country) information to its body.
- Version:
- $Id: LocaleTag.java,v 1.13 2004/03/23 21:42:47 michiel Exp $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
|
Field Summary |
protected java.util.Locale |
locale
|
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
doEndTag, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setPageContext, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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, setParent |
locale
protected java.util.Locale locale
LocaleTag
public LocaleTag()
setLanguage
public void setLanguage(java.lang.String lang)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setCountry
public void setCountry(java.lang.String c)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getLocale
public java.util.Locale getLocale()
- Child tags can call this function to obtain the Locale they must use.
- Overrides:
getLocale in class ContextReferrerTag
setJspvar
public void setJspvar(java.lang.String j)
- Overrides:
setJspvar in class ContextReferrerTag
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
MMBase build 1.7.1.20041002