|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.HtmlTagSupport
net.sourceforge.stripes.tag.LinkTagSupport
net.sourceforge.stripes.tag.UrlTag
public class UrlTag
A Stripes version of the <c:url/> tag that adds some Stripes specific parameters to the URL. Designed to generate URLs and either write them into the page or set them into one of the JSP scopes.
Cooperates with the Stripes ParamTag to accept any number of parameters that will be merged into the URL before rendering.
ParamTag
Field Summary |
---|
Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
pageContext, parentTag |
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 | |
---|---|
UrlTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
Does nothing. |
int |
doEndTag()
Generates the URL and either writes it into the page or sets it in the appropraite JSP scope. |
void |
doInitBody()
Does nothing. |
int |
doStartTag()
Does nothing. |
String |
getScope()
Gets the name of scope to store the scoped variable specified by 'var' in. |
String |
getValue()
Gets the URL as supplied on the page. |
String |
getVar()
Gets the name of the scoped variable to store the URL in. |
void |
setScope(String scope)
Sets the name of scope to store the scoped variable specified by 'var' in. |
void |
setValue(String value)
Sets the URL as supplied on the page. |
void |
setVar(String var)
Sets the name of the scoped variable to store the URL in. |
Methods inherited from class net.sourceforge.stripes.tag.LinkTagSupport |
---|
addParameter, buildUrl, clearParameters, getAnchor, getBeanclass, getEvent, getParameters, getPreferredBaseUrl, getUrl, isAddSourcePage, isPrependContext, setAddSourcePage, setAnchor, setBeanclass, setEvent, setPrependContext, setUrl |
Methods inherited from class net.sourceforge.stripes.tag.HtmlTagSupport |
---|
evaluateExpression, get, getAccesskey, getAttributes, getBodyContent, getBodyContentAsString, getCssClass, getDir, getId, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getTabindex, getTitle, release, set, setAccesskey, setBodyContent, setClass, setCssClass, setDir, setDynamicAttribute, setId, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setStyle, setTabindex, setTitle, toString, writeAttributes, writeCloseTag, writeOpenTag, writeSingletonTag |
Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
setBodyContent |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, release, setPageContext, setParent |
Constructor Detail |
---|
public UrlTag()
Method Detail |
---|
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class StripesTagSupport
BodyTag.EVAL_BODY_BUFFERED
in all cases.
JspException
public void doInitBody() throws JspException
doInitBody
in interface BodyTag
JspException
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
Tag.SKIP_BODY
in all cases.
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class StripesTagSupport
Tag.EVAL_PAGE
in all cases.
JspException
- if the output stream cannot be written to.public String getVar()
public void setVar(String var)
public String getScope()
public void setScope(String scope)
public String getValue()
public void setValue(String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |