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.CloudReferrerTag
org.mmbase.bridge.jsp.taglib.LocaleTag
- All Implemented Interfaces:
- BodyTag, IterationTag, Serializable, Tag
- Direct Known Subclasses:
- ContentTag
- public class LocaleTag
- extends CloudReferrerTag
Provides Locale (language, country) information to its body.
- Version:
- $Id: LocaleTag.java,v 1.27 2006/07/08 14:38:18 michiel Exp $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
findLoopOrQuery, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getDefaultLocale, getEscapedValue, getId, getObject, getObjectConditional, getPageContext, getPageContextTag, getReferid, getString, getTaglibVersion, getTimeZone, getWriterValue, haveBody, setContext, setEscape, setId, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final String KEY
- See Also:
- Constant Field Values
TZ_KEY
public static final String TZ_KEY
- See Also:
- Constant Field Values
SCOPE
public static final int SCOPE
- See Also:
- Constant Field Values
locale
protected Locale locale
prevLocale
protected Locale prevLocale
cloud
protected Cloud cloud
LocaleTag
public LocaleTag()
setLanguage
public void setLanguage(String lang)
throws JspTagException
- Throws:
JspTagException
setCountry
public void setCountry(String c)
throws JspTagException
- Throws:
JspTagException
setVariant
public void setVariant(String v)
throws JspTagException
- Throws:
JspTagException
setTimezone
public void setTimezone(String t)
throws JspTagException
- Throws:
JspTagException- Since:
- MMBase-1.8.1
getLocale
public Locale getLocale()
- Child tags can call this function to obtain the Locale they must use.
- Overrides:
getLocale in class CloudReferrerTag
setJspvar
public void setJspvar(String j)
- Overrides:
setJspvar in class ContextReferrerTag
doStartTag
public int doStartTag()
throws JspTagException
- Throws:
JspTagException
determineLocale
protected void determineLocale()
throws JspTagException
- Throws:
JspTagException
determineFromCloudProvider
protected void determineFromCloudProvider()
throws JspTagException
- Throws:
JspTagException
determineLocaleFromAttributes
protected void determineLocaleFromAttributes()
throws JspTagException
- Throws:
JspTagException
doAfterBody
public int doAfterBody()
throws JspTagException
- Throws:
JspTagException
doEndTag
public int doEndTag()
throws JspTagException
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class ContextReferrerTag
- Throws:
JspTagException
release
public void release()
- Description copied from class:
ContextReferrerTag
- Release all allocated resources.
- Specified by:
release in interface Tag- Overrides:
release in class ContextReferrerTag
MMBase build 1.8.1.20060716