com.caucho.jstl.rt
Class MessageTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageTag
public MessageTag()
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