public class CmsJspTagBundle
extends org.apache.taglibs.standard.tag.el.fmt.BundleTag
This replaces the <fmt:bundle basename=""> tag which is not capable of using OpenCms resource bundles.
You can use <fmt:message key=""> tags inside the <cms:bundle basename=""> tag as usual.
| 构造器和说明 |
|---|
CmsJspTagBundle()
Empty constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
doStartTag()
Internal action method.
|
java.lang.String |
getBasename()
Returns the basename attribute value.
|
javax.servlet.jsp.jstl.fmt.LocalizationContext |
getLocalizationContext()
Returns the localization context to use.
|
static javax.servlet.jsp.jstl.fmt.LocalizationContext |
getLocalizationContext(javax.servlet.jsp.PageContext pc,
java.lang.String basename)
Returns the initialized localization context.
|
void |
setBasename(java.lang.String bn)
Sets the basename attribute value.
|
doEndTag, getLocalizationContext, getPrefixdoAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic static javax.servlet.jsp.jstl.fmt.LocalizationContext getLocalizationContext(javax.servlet.jsp.PageContext pc,
java.lang.String basename)
pc - the current page contextbasename - the bas name of the bundlepublic int doStartTag()
doStartTag 在接口中 javax.servlet.jsp.tagext.TagdoStartTag 在类中 org.apache.taglibs.standard.tag.el.fmt.BundleTagTag.doStartTag()public java.lang.String getBasename()
public javax.servlet.jsp.jstl.fmt.LocalizationContext getLocalizationContext()
getLocalizationContext 在类中 org.apache.taglibs.standard.tag.common.fmt.BundleSupportBundleSupport.getLocalizationContext()public void setBasename(java.lang.String bn)
setBasename 在类中 org.apache.taglibs.standard.tag.el.fmt.BundleTagbn - the basename attribute valueBundleTag.setBasename(java.lang.String)