public abstract class BundleSupport
extends jakarta.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() |
jakarta.servlet.jsp.jstl.fmt.LocalizationContext |
getLocalizationContext() |
static jakarta.servlet.jsp.jstl.fmt.LocalizationContext |
getLocalizationContext(jakarta.servlet.jsp.PageContext pc)
Gets the default I18N localization context.
|
static jakarta.servlet.jsp.jstl.fmt.LocalizationContext |
getLocalizationContext(jakarta.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, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public jakarta.servlet.jsp.jstl.fmt.LocalizationContext getLocalizationContext()
public String getPrefix()
public int doStartTag() throws jakarta.servlet.jsp.JspException
doStartTag
in interface jakarta.servlet.jsp.tagext.Tag
doStartTag
in class jakarta.servlet.jsp.tagext.BodyTagSupport
jakarta.servlet.jsp.JspException
public int doEndTag() throws jakarta.servlet.jsp.JspException
doEndTag
in interface jakarta.servlet.jsp.tagext.Tag
doEndTag
in class jakarta.servlet.jsp.tagext.BodyTagSupport
jakarta.servlet.jsp.JspException
public void release()
release
in interface jakarta.servlet.jsp.tagext.Tag
release
in class jakarta.servlet.jsp.tagext.BodyTagSupport
public static jakarta.servlet.jsp.jstl.fmt.LocalizationContext getLocalizationContext(jakarta.servlet.jsp.PageContext pc)
pc
- Page in which to look up the default I18N localization contextpublic static jakarta.servlet.jsp.jstl.fmt.LocalizationContext getLocalizationContext(jakarta.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 jakarta.servlet.jsp.jstl.fmt.fallbackLocale configuration setting) and the available locales, for the given base name.
pc
- Page in which the resource bundle with the
given base name is requestedbasename
- Resource bundle base nameCopyright © 2019,2020 Eclipse Foundation. All rights reserved.