webwork.view.taglib
Class TextTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
webwork.view.taglib.WebWorkBodyTagSupport
webwork.view.taglib.TextTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, ParamTag.Parametric, ParamTag.UnnamedParametric, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class TextTag
- extends WebWorkBodyTagSupport
- implements ParamTag.UnnamedParametric
Access a i18n-ized message. The message must be in a resource bundle
with the same name as the action that it is associated with. In practice
this means that you should create a properties file in the same package
as your Java class with the same name as your class, but with .properties
extension.
See examples for further info on how to use.
If the named message is not found, then the body of the tag will be used as default message.
If no body is used, then the name of the message will be used.
- Version:
- $Revision: 1.9 $
- Author:
- Rickard Öberg (rickard@dreambean.com)
- See Also:
- Serialized Form
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 |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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 |
nameAttr
protected java.lang.String nameAttr
value0Attr
protected java.lang.String value0Attr
value1Attr
protected java.lang.String value1Attr
value2Attr
protected java.lang.String value2Attr
value3Attr
protected java.lang.String value3Attr
TextTag
public TextTag()
setName
public void setName(java.lang.String aName)
setValue0
public void setValue0(java.lang.String aName)
setValue1
public void setValue1(java.lang.String aName)
setValue2
public void setValue2(java.lang.String aName)
setValue3
public void setValue3(java.lang.String aName)
addParameter
public void addParameter(java.lang.String aName,
java.lang.Object aValue)
- Specified by:
addParameter
in interface ParamTag.Parametric
addParameter
public void addParameter(java.lang.Object aValue)
- Specified by:
addParameter
in interface ParamTag.UnnamedParametric
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspException
Copyright © 2001-2003 WebWork All Rights Reserved.