public class UrlTag extends LinkTagSupport implements javax.servlet.jsp.tagext.BodyTag
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
pageContext, parentTag
Constructor and Description |
---|
UrlTag() |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getScope()
Gets the name of scope to store the scoped variable specified by 'var' in.
|
java.lang.String |
getValue()
Gets the URL as supplied on the page.
|
java.lang.String |
getVar()
Gets the name of the scoped variable to store the URL in.
|
void |
setScope(java.lang.String scope)
Sets the name of scope to store the scoped variable specified by 'var' in.
|
void |
setValue(java.lang.String value)
Sets the URL as supplied on the page.
|
void |
setVar(java.lang.String var)
Sets the name of the scoped variable to store the URL in.
|
addParameter, buildUrl, clearParameters, getAnchor, getBeanclass, getEvent, getParameters, getPreferredBaseUrl, getUrl, isAddSourcePage, isPrependContext, setAddSourcePage, setAnchor, setBeanclass, setEvent, setPrependContext, setUrl
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
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, setPageContext, setParent
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class StripesTagSupport
BodyTag.EVAL_BODY_BUFFERED
in all cases.javax.servlet.jsp.JspException
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
Tag.SKIP_BODY
in all cases.javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class StripesTagSupport
Tag.EVAL_PAGE
in all cases.javax.servlet.jsp.JspException
- if the output stream cannot be written to.public java.lang.String getVar()
public void setVar(java.lang.String var)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
public java.lang.String getValue()
public void setValue(java.lang.String value)
? Copyright 2005-2006, Stripes Development Team.