com.opensymphony.webwork.views.jsp.ui
Class TextTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
com.opensymphony.webwork.views.jsp.ui.TextTag
- All Implemented Interfaces:
- BodyTag, IterationTag, ParamTag.Parametric, ParamTag.UnnamedParametric, Serializable, 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.
- Author:
- Jason Carreira
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value0Attr
protected String value0Attr
value1Attr
protected String value1Attr
value2Attr
protected String value2Attr
value3Attr
protected String value3Attr
TextTag
public TextTag()
setName
public void setName(String name)
getParameters
public Map getParameters()
- Specified by:
getParameters
in interface ParamTag.Parametric
setValue0
public void setValue0(String aName)
setValue1
public void setValue1(String aName)
setValue2
public void setValue2(String aName)
setValue3
public void setValue3(String aName)
addParameter
public void addParameter(String key,
Object value)
- Specified by:
addParameter
in interface ParamTag.Parametric
addParameter
public void addParameter(Object value)
- Specified by:
addParameter
in interface ParamTag.UnnamedParametric
doEndTag
public int doEndTag()
throws JspException
- Specified by:
doEndTag
in interface Tag
- Throws:
JspException
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Throws:
JspException