com.caucho.jstl.rt
Class BundleTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.caucho.jstl.rt.I18NSupport
com.caucho.jstl.rt.BundleTag
- All Implemented Interfaces:
- java.io.Serializable, IterationTag, JspTag, Tag, TryCatchFinally
public class BundleTag
- extends I18NSupport
- implements TryCatchFinally
Sets the i18n localization bundle for a context.
- See Also:
- Serialized Form
Method Summary |
void |
doCatch(java.lang.Throwable t)
Handle the catch |
void |
doFinally()
Handle the finaly |
int |
doStartTag()
Process the tag. |
void |
setBasename(java.lang.String basename)
Sets the basename. |
static java.lang.Object |
setBundle(java.lang.String baseName,
PageContextImpl pc)
|
void |
setPrefix(java.lang.String prefix)
Sets a prefix for message keys. |
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(java.lang.String basename)
- Sets the basename.
setPrefix
public void setPrefix(java.lang.String 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)