|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.tag.ParamTag
public class ParamTag
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
Field Summary |
---|
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 |
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. |
String |
getName()
Gets the name of the parameter(s) that will be added to the URL. |
PageContext |
getPageContext()
|
Tag |
getParent()
Required spec method to allow others to access the parent of the tag. |
Object |
getValue()
Gets the value attribute, as set with setValue(). |
void |
release()
Does nothing. |
void |
setBodyContent(BodyContent bodyContent)
Used by the container to set the contents of the body of the tag. |
void |
setName(String name)
Sets the name of the parameter(s) that will be added to the URL. |
void |
setPageContext(PageContext pageContext)
Used by the container to set the page context for the tag. |
void |
setParent(Tag tag)
Used by the container to provide the tag with access to it's parent tag on the page. |
void |
setValue(Object value)
Sets the value of the parameter(s) to be added to the URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamTag()
Method Detail |
---|
public void setValue(Object value)
public Object getValue()
public void setName(String name)
public String getName()
public void setBodyContent(BodyContent bodyContent)
setBodyContent
in interface BodyTag
public void setPageContext(PageContext pageContext)
setPageContext
in interface Tag
public void setParent(Tag tag)
setParent
in interface Tag
public Tag getParent()
getParent
in interface Tag
public void doInitBody() throws JspException
doInitBody
in interface BodyTag
JspException
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
JspException
public int doStartTag() throws JspException
doStartTag
in interface Tag
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
JspException
public void release()
release
in interface Tag
public PageContext getPageContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |