org.apache.struts.taglib.logic

Class RedirectTag


public class RedirectTag
extends TagSupport

Generate a URL-encoded redirect to the specified URI.

Version:
$Revision: 1.14 $ $Date: 2002/09/23 05:22:08 $

Author:
Craig R. McClanahan

Field Summary

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
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?

Method Summary

int
doEndTag()
Render the redirect and skip the remainder of this page.
int
doStartTag()
Defer generation until the end of this tag is encountered.
String
getAnchor()
String
getForward()
String
getHref()
String
getName()
String
getPage()
String
getParamId()
String
getParamName()
String
getParamProperty()
String
getParamScope()
String
getProperty()
String
getScope()
boolean
getTransaction()
void
release()
Release any acquired resources.
void
setAnchor(String anchor)
void
setForward(String forward)
void
setHref(String href)
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)

Field Details

anchor

protected String anchor
The anchor to be added to the end of the generated hyperlink.


forward

protected String forward
The logical forward name from which to retrieve the redirect URI.


href

protected String href
The redirect URI.


messages

protected static MessageResources messages
The message resources for this package.


name

protected String name
The JSP bean name for query parameters.


page

protected String page
The module-relative page URL (beginning with a slash) to which this redirect will be rendered.


paramId

protected String paramId
The single-parameter request parameter name to generate.


paramName

protected String paramName
The single-parameter JSP bean name.


paramProperty

protected String paramProperty
The single-parameter JSP bean property.


paramScope

protected String paramScope
The single-parameter JSP bean scope.


property

protected String property
The JSP bean property name for query parameters.


scope

protected String scope
The scope of the bean specified by the name property, if any.


transaction

protected boolean transaction
Include our transaction control token?

Method Details

doEndTag

public int doEndTag()
            throws JspException
Render the redirect and skip the remainder of this page.


doStartTag

public int doStartTag()
            throws JspException
Defer generation until the end of this tag is encountered.


getAnchor

public String getAnchor()


getForward

public String getForward()


getHref

public String getHref()


getName

public String getName()


getPage

public String getPage()


getParamId

public String getParamId()


getParamName

public String getParamName()


getParamProperty

public String getParamProperty()


getParamScope

public String getParamScope()


getProperty

public String getProperty()


getScope

public String getScope()


getTransaction

public boolean getTransaction()


release

public void release()
Release any acquired resources.


setAnchor

public void setAnchor(String anchor)


setForward

public void setForward(String forward)


setHref

public void setHref(String href)


setName

public void setName(String name)


setPage

public void setPage(String page)


setParamId

public void setParamId(String paramId)


setParamName

public void setParamName(String paramName)


setParamProperty

public void setParamProperty(String paramProperty)


setParamScope

public void setParamScope(String paramScope)


setProperty

public void setProperty(String property)


setScope

public void setScope(String scope)


setTransaction

public void setTransaction(boolean transaction)


Copyright B) 2000-2005 - Apache Software Foundation