Class MessageTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.apache.taglibs.standard.tag.common.fmt.MessageSupport
-
- org.apache.taglibs.standard.tag.el.fmt.MessageTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class MessageTag extends MessageSupport
A handler for <message> that accepts attributes as Strings and evaluates them as expressions at runtime.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
bundle_
private java.lang.String
key_
-
Fields inherited from class org.apache.taglibs.standard.tag.common.fmt.MessageSupport
bundleAttrValue, bundleSpecified, keyAttrValue, keySpecified, UNDEFINED_KEY
-
-
Constructor Summary
Constructors Constructor Description MessageTag()
Constructs a new MessageTag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doStartTag()
private void
evaluateExpressions()
private void
init()
void
release()
void
setBundle(java.lang.String bundle_)
void
setKey(java.lang.String key_)
-
Methods inherited from class org.apache.taglibs.standard.tag.common.fmt.MessageSupport
addParam, doEndTag, setScope, setVar
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classMessageSupport
- Throws:
javax.servlet.jsp.JspException
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classMessageSupport
-
setKey
public void setKey(java.lang.String key_)
-
setBundle
public void setBundle(java.lang.String bundle_)
-
init
private void init()
-
evaluateExpressions
private void evaluateExpressions() throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
-
-