|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.logic.ForwardTag
public class ForwardTag
Perform a forward or redirect to a page that is looked up in the configuration information associated with our application.
Field Summary | |
---|---|
protected static MessageResources |
messages
The message resources for this package. |
protected java.lang.String |
name
The logical name of the ActionForward entry to be looked
up. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
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 |
Constructor Summary | |
---|---|
ForwardTag()
|
Method Summary | |
---|---|
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(java.lang.String path)
Forward to the given path converting exceptions to JspException. |
protected void |
doRedirect(java.lang.String path)
Redirect to the given path converting exceptions to JspException. |
int |
doStartTag()
Defer processing until the end of this tag is encountered. |
java.lang.String |
getName()
|
void |
release()
Release all allocated resources. |
void |
setName(java.lang.String name)
|
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, toString, wait, wait, wait |
Field Detail |
---|
protected static MessageResources messages
protected java.lang.String name
ActionForward
entry to be looked
up.
Constructor Detail |
---|
public ForwardTag()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.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(java.lang.String path) throws javax.servlet.jsp.JspException
path
- The path to forward to.
javax.servlet.jsp.JspException
protected void doRedirect(java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |