public abstract class BundleSupport
extends javax.servlet.jsp.tagext.BodyTagSupport
| Modifier and Type | Field and Description |
|---|---|
protected String |
basename |
protected String |
prefix |
| Constructor and Description |
|---|
BundleSupport() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
LocalizationContext |
getLocalizationContext() |
static LocalizationContext |
getLocalizationContext(javax.servlet.jsp.PageContext pc)
Gets the default I18N localization context.
|
static LocalizationContext |
getLocalizationContext(javax.servlet.jsp.PageContext pc,
String basename)
Gets the resource bundle with the given base name, whose locale is
determined as follows:
Check if a match exists between the ordered set of preferred
locales and the available locales, for the given base name.
|
String |
getPrefix() |
void |
release() |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic LocalizationContext getLocalizationContext()
public String getPrefix()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic static LocalizationContext getLocalizationContext(javax.servlet.jsp.PageContext pc)
pc - Page in which to look up the default I18N localization contextpublic static LocalizationContext getLocalizationContext(javax.servlet.jsp.PageContext pc, String basename)
If no match was found in the previous step, check if a match exists between the fallback locale (given by the javax.servlet.jsp.jstl.fmt.fallbackLocale configuration setting) and the available locales, for the given base name.
pageContext - Page in which the resource bundle with the
given base name is requestedbasename - Resource bundle base nameCopyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.