com.caucho.jstl.rt
Class BundleTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.caucho.jstl.rt.I18NSupport
          extended by 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

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
BundleTag()
           
 
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 com.caucho.jstl.rt.I18NSupport
setResponseLocale
 
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
 

Constructor Detail

BundleTag

public BundleTag()
Method Detail

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)