public class BundleTag extends BaseTag
Modifier and Type | Class and Description |
---|---|
static class |
BundleTag.ResourceHelper |
static class |
BundleTag.TEI |
BaseTag.JSPIncludeTrace
Constructor and Description |
---|
BundleTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Sets the response locale if changeResponseLocale attribute is true
|
int |
doStartTag()
Called upon invocation of the tag.
|
protected ResourceBundle |
getBundle()
Get the bundle created by this bundle tag, used by nested tags.
|
void |
release() |
void |
setBaseName(String value)
Sets the baseName of the bundle that the MessageTags will use when
retrieving keys for this page.
|
void |
setChangeResponseLocale(boolean value)
Specifies whether or not the response locale should be changed to match
the locale used by this tag.
|
void |
setDebug(boolean value)
Set to true to enable debug logging.
|
void |
setLocale(Locale value)
Sets the locale of the bundle that the MessageTags will use when
retrieving keys for this page.
|
void |
setLocaleAttribute(String value)
Deprecated.
|
void |
setLocaleRef(String value)
Provides a key to search the page context for in order to get the
locale of the bundle that the MessageTags will use when retrieving
keys for this page.
|
void |
setScope(String value)
Sets the scope that the bundle will be available to message tags.
|
getErrorPage, handleError, jspInclude, setErrorPage
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public final void setBaseName(String value)
public final void setDebug(boolean value)
public void setLocale(Locale value)
public void setLocaleAttribute(String value)
public void setLocaleRef(String value)
public void setScope(String value) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public void setChangeResponseLocale(boolean value)
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
protected final ResourceBundle getBundle()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.