com.caucho.jstl.el
Class BundleTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.caucho.jstl.el.BundleTag
- All Implemented Interfaces:
- java.io.Serializable, IterationTag, JspTag, Tag, TryCatchFinally
public class BundleTag
- extends TagSupport
- implements TryCatchFinally
Sets the i18n localization bundle for a context.
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleTag
public BundleTag()
setBasename
public void setBasename(Expr basename)
- Sets the JSP-EL expression for the basename.
setPrefix
public void setPrefix(Expr prefix)
- Sets a prefix for message keys.
doStartTag
public int doStartTag()
throws JspException
- Process the tag.
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class TagSupport
- Returns:
- SKIP_BODY to ignore the body and EVAL_BODY_INCLUDE
to evaluate the body.
- Throws:
JspException
doCatch
public void doCatch(java.lang.Throwable t)
throws java.lang.Throwable
- Handle the catch
- Specified by:
doCatch
in interface TryCatchFinally
- Parameters:
t
- the thrown exception
- Throws:
java.lang.Throwable
doFinally
public void doFinally()
- Handle the finaly
- Specified by:
doFinally
in interface TryCatchFinally
setBundle
public static java.lang.Object setBundle(java.lang.String baseName,
PageContextImpl pc)