org.apache.struts.taglib
Class RedirectTag

org.apache.struts.taglib.RedirectTag

public class RedirectTag

Perform a sendRedirect() to the specified URL, and skip evaluating the remainder of the current page.

Version:
$Revision: 1.5 $ $Date: 2000/08/01 20:03:35 $
Author:
Craig R. McClanahan

Field Summary
protected  java.lang.String href
          The hyperlink URI.
protected static MessageResources messages
          The message resources for this package.
 
Constructor Summary
RedirectTag()
           
 
Method Summary
 int doEndTag()
          Render a redirect to the specified hyperlink, and skip the remainder of the current page.
 int doStartTag()
          Defer generation until the end of this tag is encountered.
 java.lang.String getHref()
          Return the hyperlink URI.
 void release()
          Release any acquired resources.
 void setHref(java.lang.String href)
          Set the hyperlink URI.
 

Field Detail

href

protected java.lang.String href
The hyperlink URI.

messages

protected static MessageResources messages
The message resources for this package.
Constructor Detail

RedirectTag

public RedirectTag()
Method Detail

getHref

public java.lang.String getHref()
Return the hyperlink URI.

setHref

public void setHref(java.lang.String href)
Set the hyperlink URI.
Parameters:
href - Set the hyperlink URI

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Defer generation until the end of this tag is encountered.
Throws:
JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Render a redirect to the specified hyperlink, and skip the remainder of the current page.
Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.


Copyright © 2000-2002 - Apache Software Foundation