|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 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(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)
|
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 String name
ActionForward
entry to be looked
up.
Constructor Detail |
---|
public ForwardTag()
Method Detail |
---|
public String getName()
public void setName(String name)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- if a JSP exception has occurredprotected void doForward(String path) throws JspException
path
- The path to forward to.
JspException
protected void doRedirect(String path) throws JspException
path
- The path to redirect to.
JspException
public void release()
release
in interface Tag
release
in class TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |