public class ParamTag
extends java.lang.Object
implements javax.servlet.jsp.tagext.BodyTag
Used to supply parameters when nested inside tags that implement ParameterizableTag
.
The value is either obtained from the value attribute, or if that is not present, then the
body of the tag.
Once the value has been established the parent tag is looked for, and the parameter is handed over to it.
Primarily used by the LinkTag and UrlTag.
ParamTag
Constructor and Description |
---|
ParamTag() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Does nothing.
|
int |
doEndTag()
Figures out what to use as the value, and then finds the parent link and adds
the parameter.
|
void |
doInitBody()
Does nothing.
|
int |
doStartTag()
Does nothing.
|
java.lang.String |
getName()
Gets the name of the parameter(s) that will be added to the URL.
|
javax.servlet.jsp.PageContext |
getPageContext() |
javax.servlet.jsp.tagext.Tag |
getParent()
Required spec method to allow others to access the parent of the tag.
|
java.lang.Object |
getValue()
Gets the value attribute, as set with setValue().
|
void |
release()
Does nothing.
|
void |
setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
Used by the container to set the contents of the body of the tag.
|
void |
setName(java.lang.String name)
Sets the name of the parameter(s) that will be added to the URL.
|
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Used by the container to set the page context for the tag.
|
void |
setParent(javax.servlet.jsp.tagext.Tag tag)
Used by the container to provide the tag with access to it's parent tag on the page.
|
void |
setValue(java.lang.Object value)
Sets the value of the parameter(s) to be added to the URL.
|
public void setValue(java.lang.Object value)
public java.lang.Object getValue()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
setBodyContent
in interface javax.servlet.jsp.tagext.BodyTag
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
public void setParent(javax.servlet.jsp.tagext.Tag tag)
setParent
in interface javax.servlet.jsp.tagext.Tag
public javax.servlet.jsp.tagext.Tag getParent()
getParent
in interface javax.servlet.jsp.tagext.Tag
public void doInitBody() throws javax.servlet.jsp.JspException
doInitBody
in interface javax.servlet.jsp.tagext.BodyTag
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
javax.servlet.jsp.JspException
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
public javax.servlet.jsp.PageContext getPageContext()
? Copyright 2005-2006, Stripes Development Team.