public class ForwardTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected static MessageResources |
messages
The message resources for this package.
|
protected String |
name
The logical name of the
ActionForward entry to be looked
up. |
Constructor and Description |
---|
ForwardTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Look up the ActionForward associated with the specified name, and
perform a forward or redirect to that path as indicated.
|
protected void |
doForward(String path)
Forward to the given path converting exceptions to JspException.
|
protected void |
doRedirect(String path)
Redirect to the given path converting exceptions to JspException.
|
int |
doStartTag()
Defer processing until the end of this tag is encountered.
|
String |
getName() |
void |
release()
Release all allocated resources.
|
void |
setName(String name) |
protected static MessageResources messages
protected String name
ActionForward
entry to be looked
up.public String getName()
public void setName(String name)
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 void doForward(String path) throws javax.servlet.jsp.JspException
path
- The path to forward to.javax.servlet.jsp.JspException
protected void doRedirect(String path) throws javax.servlet.jsp.JspException
path
- 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–2017 Apache Software Foundation. All rights reserved.