com.opensymphony.webwork.views.jsp.ui
Class TextTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
              extended bycom.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

Field Summary
protected  String value0Attr
           
protected  String value1Attr
           
protected  String value2Attr
           
protected  String value3Attr
           
 
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
 
Constructor Summary
TextTag()
           
 
Method Summary
 void addParameter(Object value)
           
 void addParameter(String key, Object value)
           
 int doEndTag()
           
 int doStartTag()
           
 Map getParameters()
           
 void setName(String name)
           
 void setValue0(String aName)
           
 void setValue1(String aName)
           
 void setValue2(String aName)
           
 void setValue3(String aName)
           
 
Methods inherited from class com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
findString, findValue, findValue, getStack, toString
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, 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, setPageContext, setParent
 

Field Detail

value0Attr

protected String value0Attr

value1Attr

protected String value1Attr

value2Attr

protected String value2Attr

value3Attr

protected String value3Attr
Constructor Detail

TextTag

public TextTag()
Method Detail

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

WebWork Project Page