com.opensymphony.webwork.views.jsp
Class ParamTag

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.ParamTag
All Implemented Interfaces:
BodyTag, IterationTag, Serializable, Tag

public class ParamTag
extends WebWorkBodyTagSupport

This tag can be used to parameterize other tags, who implement the ParametricTag interface declared here.

The IncludeTag and BeanTag are examples of such tags.

The inner classes, Parametric and UnnamedParametric, are implemented by tags. They indicate that a particular Tag may have embedded params. For example, if we were wanted to use the ComponentTag and wanted to provide custom params to assist with the rendering, we could declare something like

 <ui:component>
  <ui:param name="key"     value="[0]"/>
  <ui:param name="value"   value="[1]"/>
  <ui:param name="context" value="[2]"/>
 </ui:component>
 

where the key will be the identifier and the value the result of an OGNL expression run against the current OgnlValueStack

Author:
Rickard ?berg (rickard@dreambean.com)
See Also:
IncludeTag, BeanTag, Serialized Form

Nested Class Summary
static interface ParamTag.Parametric
           
static interface ParamTag.UnnamedParametric
           
 
Field Summary
protected  String nameAttr
           
protected  String valueAttr
           
 
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
ParamTag()
           
 
Method Summary
 int doEndTag()
           
 void setName(String aName)
           
 void setValue(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, doStartTag, 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

nameAttr

protected String nameAttr

valueAttr

protected String valueAttr
Constructor Detail

ParamTag

public ParamTag()
Method Detail

setName

public void setName(String aName)

setValue

public void setValue(String aName)

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

WebWork Project Page