public class MessageTag extends BaseTag
Modifier and Type | Class and Description |
---|---|
static class |
MessageTag.TEI |
BaseTag.JSPIncludeTrace
Constructor and Description |
---|
MessageTag() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArg(Object arg)
adds to the list of arguments used when formatting the message
|
int |
doAfterBody()
If key is not found, use the body content as a default value.
|
int |
doEndTag()
Performs the proper runtime substitution.
|
int |
doStartTag()
locates the bundle and gets the value
|
void |
release()
clears the argument list so that sub tags can call addArgument
clears out any previous key and value in case key is not provided,
or the value is null
|
void |
setArgs(Object[] args)
allows setting all the arguments at once
|
void |
setBundle(ResourceBundle aBundle)
sets the bundle to an actual ResourceBundle object
if neither bundle or bundleRef are specified, uses the bundle most recently defined on the page by the i18n:bundle tag |
void |
setBundleRef(String varName)
sets the bundle based on a variable defined in the page
if neither bundle or bundleRef are specified, uses the first bundle defined on the page by the i18n:bundle tag |
void |
setDebug(boolean value)
Turn debugging log messages on or off
|
void |
setKey(String key)
sets the key to use when looking up the value in the bundle
|
getErrorPage, handleError, jspInclude, setErrorPage
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public final void setKey(String key)
public final void setBundleRef(String varName)
public final void setBundle(ResourceBundle aBundle)
public final void setDebug(boolean value)
protected final void addArg(Object arg)
public final void setArgs(Object[] args)
public final void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public final int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public final int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.