public class MessageTag extends BodyTagSupport implements ParamContainerTag
bodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
MessageTag() |
Modifier and Type | Method and Description |
---|---|
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.
|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, setPageContext, setParent
public void setKey(java.lang.String key)
key
- the key value.public void setBundle(java.lang.Object bundle)
bundle
- the localication contextpublic void setVar(java.lang.String var)
var
- the variablepublic void setScope(java.lang.String scope)
scope
- the scopepublic void addParam(java.lang.Object value)
addParam
in interface ParamContainerTag
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException