it.eng.spago.taglib.logic
Class RedirectTag

java.lang.Object
  extended by TagSupport
      extended by it.eng.spago.taglib.logic.RedirectTag

public class RedirectTag
extends TagSupport

Generate a URL-encoded redirect to the specified URI.

Version:
$Rev: 376842 $ $Date: 2004-10-16 12:38:42 -0400 (Sat, 16 Oct 2004) $

Field Summary
protected  java.lang.String alias
           
protected  java.lang.String aliasRelated
           
protected  java.lang.String anchor
          The anchor to be added to the end of the generated hyperlink.
protected  java.lang.String href
          The redirect URI.
protected static MessageBundleReference messages
          The message resources for this package.
protected  java.lang.String name
          The JSP bean name for query parameters.
protected  java.lang.String paramId
          The single-parameter request parameter name to generate.
protected  java.lang.String paramName
          The single-parameter JSP bean name.
protected  java.lang.String paramProperty
          The single-parameter JSP bean property.
protected  java.lang.String paramScope
          The single-parameter JSP bean scope.
protected  java.lang.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 Summary
RedirectTag()
           
 
Method Summary
 int doEndTag()
          Render the redirect and skip the remainder of this page.
protected  void doRedirect(java.lang.String url)
          Redirect to the given url converting exceptions to JspException.
 int doStartTag()
          Defer generation until the end of this tag is encountered.
protected  java.lang.String generateRedirectURL()
          Calculate the url to redirect to.
 java.lang.String getAnchor()
           
 java.lang.String getHref()
           
 java.lang.String getName()
           
 java.lang.String getParamId()
           
 java.lang.String getParamName()
           
 java.lang.String getParamProperty()
           
 java.lang.String getParamScope()
           
 java.lang.String getScope()
           
 boolean getTransaction()
           
 boolean isUseLocalEncoding()
           
 void release()
          Release any acquired resources.
 void setAlias(java.lang.String alias)
           
 void setAliasRelated(java.lang.String aliasRelated)
           
 void setAnchor(java.lang.String anchor)
           
 void setHref(java.lang.String href)
           
 void setName(java.lang.String name)
           
 void setParamId(java.lang.String paramId)
           
 void setParamName(java.lang.String paramName)
           
 void setParamProperty(java.lang.String paramProperty)
           
 void setParamScope(java.lang.String paramScope)
           
 void setScope(java.lang.String scope)
           
 void setTransaction(boolean transaction)
           
 void setUseLocalEncoding(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

protected static MessageBundleReference messages
The message resources for this package.


alias

protected java.lang.String alias

aliasRelated

protected java.lang.String aliasRelated

anchor

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


href

protected java.lang.String href
The redirect URI.


name

protected java.lang.String name
The JSP bean name for query parameters.


paramId

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


paramName

protected java.lang.String paramName
The single-parameter JSP bean name.


paramProperty

protected java.lang.String paramProperty
The single-parameter JSP bean property.


paramScope

protected java.lang.String paramScope
The single-parameter JSP bean scope.


scope

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


transaction

protected boolean transaction
Include our transaction control token?


useLocalEncoding

protected boolean useLocalEncoding
Use character encoding from ServletResponse#getCharacterEncoding to get bytes of the url string for urlencoding?

Constructor Detail

RedirectTag

public RedirectTag()
Method Detail

setAlias

public void setAlias(java.lang.String alias)

setAliasRelated

public void setAliasRelated(java.lang.String aliasRelated)

getAnchor

public java.lang.String getAnchor()

setAnchor

public void setAnchor(java.lang.String anchor)

getHref

public java.lang.String getHref()

setHref

public void setHref(java.lang.String href)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getParamId

public java.lang.String getParamId()

setParamId

public void setParamId(java.lang.String paramId)

getParamName

public java.lang.String getParamName()

setParamName

public void setParamName(java.lang.String paramName)

getParamProperty

public java.lang.String getParamProperty()

setParamProperty

public void setParamProperty(java.lang.String paramProperty)

getParamScope

public java.lang.String getParamScope()

setParamScope

public void setParamScope(java.lang.String paramScope)

getScope

public java.lang.String getScope()

setScope

public void setScope(java.lang.String scope)

getTransaction

public boolean getTransaction()

setTransaction

public void setTransaction(boolean transaction)

isUseLocalEncoding

public boolean isUseLocalEncoding()

setUseLocalEncoding

public void setUseLocalEncoding(boolean b)

doStartTag

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

Throws:
JspException - if a JSP exception has occurred

doEndTag

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

Throws:
JspException - if a JSP exception has occurred

generateRedirectURL

protected java.lang.String generateRedirectURL()
                                        throws JspException
Calculate the url to redirect to.

Throws:
JspException
Since:
Struts 1.2

doRedirect

protected void doRedirect(java.lang.String url)
                   throws JspException
Redirect to the given url converting exceptions to JspException.

Parameters:
url - The path to redirect to.
Throws:
JspException
Since:
Struts 1.2

release

public void release()
Release any acquired resources.