com.caucho.jstl.rt
Class MessageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.caucho.jstl.rt.MessageTag
All Implemented Interfaces:
ParamContainerTag, java.io.Serializable, BodyTag, IterationTag, JspTag, Tag

public class MessageTag
extends BodyTagSupport
implements ParamContainerTag

Looks up an i18n message from a bundle and prints it.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
MessageTag()
           
 
Method Summary
 void addParam(java.lang.Object value)
          Add a parameter value to the message.
 int doEndTag()
          Process the tag.
 void setBundle(java.lang.Object bundle)
          Sets the bundle.
 void setKey(java.lang.String key)
          Sets the message key.
 void setScope(java.lang.String scope)
          Sets the scope.
 void setVar(java.lang.String var)
          Sets the variable.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

MessageTag

public MessageTag()
Method Detail

setKey

public void setKey(java.lang.String key)
Sets the message key.

Parameters:
key - the key value.

setBundle

public void setBundle(java.lang.Object bundle)
Sets the bundle.

Parameters:
bundle - the localication context

setVar

public void setVar(java.lang.String var)
Sets the variable.

Parameters:
var - the variable

setScope

public void setScope(java.lang.String scope)
Sets the scope.

Parameters:
scope - the scope

addParam

public void addParam(java.lang.Object value)
Add a parameter value to the message.

Specified by:
addParam in interface ParamContainerTag

doEndTag

public int doEndTag()
             throws JspException
Process the tag.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
EVAL_PAGE to continue the page SKIP_PAGE to stop.
Throws:
JspException