public class RedirectTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected String |
action
The module-relative action (beginning with a slash) which will be
called by this link
|
protected String |
anchor
The anchor to be added to the end of the generated hyperlink.
|
protected String |
forward
The logical forward name from which to retrieve the redirect URI.
|
protected String |
href
The redirect URI.
|
protected static MessageResources |
messages
The message resources for this package.
|
protected String |
module
The module prefix (beginning with a slash) which will be used to find
the action for this link.
|
protected String |
name
The JSP bean name for query parameters.
|
protected String |
page
The module-relative page URL (beginning with a slash) to which this
redirect will be rendered.
|
protected String |
paramId
The single-parameter request parameter name to generate.
|
protected String |
paramName
The single-parameter JSP bean name.
|
protected String |
paramProperty
The single-parameter JSP bean property.
|
protected String |
paramScope
The single-parameter JSP bean scope.
|
protected String |
property
The JSP bean property name for query parameters.
|
protected String |
scope
The scope of the bean specified by the name property, if any.
|
protected boolean |
transaction
Include our transaction control token?
|
protected boolean |
useLocalEncoding
Use character encoding from ServletResponse#getCharacterEncoding to get
bytes of the url string for urlencoding?
|
Constructor and Description |
---|
RedirectTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Render the redirect and skip the remainder of this page.
|
protected void |
doRedirect(String url)
Redirect to the given url converting exceptions to JspException.
|
int |
doStartTag()
Defer generation until the end of this tag is encountered.
|
protected String |
generateRedirectURL()
Calculate the url to redirect to.
|
String |
getAction() |
String |
getAnchor() |
String |
getForward() |
String |
getHref() |
String |
getModule() |
String |
getName() |
String |
getPage() |
String |
getParamId() |
String |
getParamName() |
String |
getParamProperty() |
String |
getParamScope() |
String |
getProperty() |
String |
getScope() |
boolean |
getTransaction() |
boolean |
isUseLocalEncoding() |
void |
release()
Release any acquired resources.
|
void |
setAction(String action) |
void |
setAnchor(String anchor) |
void |
setForward(String forward) |
void |
setHref(String href) |
void |
setModule(String module) |
void |
setName(String name) |
void |
setPage(String page) |
void |
setParamId(String paramId) |
void |
setParamName(String paramName) |
void |
setParamProperty(String paramProperty) |
void |
setParamScope(String paramScope) |
void |
setProperty(String property) |
void |
setScope(String scope) |
void |
setTransaction(boolean transaction) |
void |
setUseLocalEncoding(boolean b) |
protected static MessageResources messages
protected String anchor
protected String forward
protected String href
protected String name
protected String page
protected String action
protected String module
protected String paramId
protected String paramName
protected String paramProperty
protected String paramScope
protected String property
protected String scope
protected boolean transaction
protected boolean useLocalEncoding
public String getAnchor()
public void setAnchor(String anchor)
public String getForward()
public void setForward(String forward)
public String getHref()
public void setHref(String href)
public String getName()
public void setName(String name)
public String getPage()
public void setPage(String page)
public String getAction()
public void setAction(String action)
public String getModule()
public void setModule(String module)
public String getParamId()
public void setParamId(String paramId)
public String getParamName()
public void setParamName(String paramName)
public String getParamProperty()
public void setParamProperty(String paramProperty)
public String getParamScope()
public void setParamScope(String paramScope)
public String getProperty()
public void setProperty(String property)
public String getScope()
public void setScope(String scope)
public boolean getTransaction()
public void setTransaction(boolean transaction)
public boolean isUseLocalEncoding()
public void setUseLocalEncoding(boolean b)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected String generateRedirectURL() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void doRedirect(String url) throws javax.servlet.jsp.JspException
url
- The path to redirect to.javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.