net.sourceforge.stripes.action
Class ForwardResolution

java.lang.Object
  extended by net.sourceforge.stripes.action.OnwardResolution
      extended by net.sourceforge.stripes.action.ForwardResolution
All Implemented Interfaces:
Resolution

public class ForwardResolution
extends OnwardResolution
implements Resolution

Resolution that uses the Servlet API to forward the user to another path within the same web application using a server side forward.

Author:
Tim Fennell
See Also:
RedirectResolution

Field Summary
 
Fields inherited from class net.sourceforge.stripes.action.OnwardResolution
path
 
Constructor Summary
ForwardResolution(String path)
          Simple constructor that takes in the path to forward the user to.
 
Method Summary
 void execute(HttpServletRequest request, HttpServletResponse response)
          Attempts to forward the user to the specified path.
 
Methods inherited from class net.sourceforge.stripes.action.OnwardResolution
getPath, setPath, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardResolution

public ForwardResolution(String path)
Simple constructor that takes in the path to forward the user to.

Parameters:
path - the path within the web application that the user should be forwarded to
Method Detail

execute

public void execute(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException,
                    IOException
Attempts to forward the user to the specified path.

Specified by:
execute in interface Resolution
Specified by:
execute in class OnwardResolution
Parameters:
request - the current HttpServletRequest
response - the current HttpServletResponse
Throws:
ServletException - thrown when the Servlet container encounters an error
IOException - thrown when the Servlet container encounters an error


© Copyright 2005, Stripes Development Team.