org.apache.struts.taglib
Class RedirectTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.struts.taglib.RedirectTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class RedirectTag
- extends javax.servlet.jsp.tagext.TagSupport
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
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.String |
href
The hyperlink URI. |
protected static MessageResources |
messages
The message resources for this package. |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext, parent, values |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
|
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. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
href
protected java.lang.String href
- The hyperlink URI.
messages
protected static MessageResources messages
- The message resources for this package.
RedirectTag
public RedirectTag()
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.
- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.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.
- Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred
release
public void release()
- Release any acquired resources.
- Overrides:
release in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2000-2002 - Apache Software Foundation