org.apache.struts.taglib.logic

Class ForwardTag

public class ForwardTag extends TagSupport

Perform a forward or redirect to a page that is looked up in the configuration information associated with our application.

Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary
protected static MessageResourcesmessages
The message resources for this package.
protected Stringname
The logical name of the ActionForward entry to be looked up.
Method Summary
intdoEndTag()
Look up the ActionForward associated with the specified name, and perform a forward or redirect to that path as indicated.
protected voiddoForward(String path)
Forward to the given path converting exceptions to JspException.
protected voiddoRedirect(String path)
Redirect to the given path converting exceptions to JspException.
intdoStartTag()
Defer processing until the end of this tag is encountered.
StringgetName()
voidrelease()
Release all allocated resources.
voidsetName(String name)

Field Detail

messages

protected static MessageResources messages
The message resources for this package.

name

protected String name
The logical name of the ActionForward entry to be looked up.

Method Detail

doEndTag

public int doEndTag()
Look up the ActionForward associated with the specified name, and perform a forward or redirect to that path as indicated.

Throws: JspException if a JSP exception has occurred

doForward

protected void doForward(String path)
Forward to the given path converting exceptions to JspException.

Parameters: path The path to forward to.

Throws: JspException

Since: Struts 1.2

doRedirect

protected void doRedirect(String path)
Redirect to the given path converting exceptions to JspException.

Parameters: path The path to redirect to.

Throws: JspException

Since: Struts 1.2

doStartTag

public int doStartTag()
Defer processing until the end of this tag is encountered.

Throws: JspException if a JSP exception has occurred

getName

public String getName()

release

public void release()
Release all allocated resources.

setName

public void setName(String name)
Copyright © 2000-2008 - The Apache Software Foundation