org.apache.struts.tiles
Class ActionController

java.lang.Object
  extended by org.apache.struts.tiles.ActionController
All Implemented Interfaces:
Controller

public class ActionController
extends Object
implements Controller

Struts wrapper implementation of Controller. This implementation wraps an Action in a Controller.


Constructor Summary
ActionController(Action action)
          Constructor.
 
Method Summary
 void execute(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
          Method associated to a tile and called immediately before the tile is included.
 void perform(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
          Method associated to a tile and called immediately before tile is included.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionController

public ActionController(Action action)
Constructor.

Parameters:
action - Action to be wrapped.
Method Detail

perform

public void perform(ComponentContext tileContext,
                    HttpServletRequest request,
                    HttpServletResponse response,
                    ServletContext servletContext)
             throws ServletException,
                    IOException
Method associated to a tile and called immediately before tile is included. This implementation calls a Struts Action. No servlet is set by this method.

Specified by:
perform in interface Controller
Parameters:
tileContext - Current tile context.
request - Current request.
response - Current response.
servletContext - Current servlet context.
Throws:
ServletException
IOException

execute

public void execute(ComponentContext tileContext,
                    HttpServletRequest request,
                    HttpServletResponse response,
                    ServletContext servletContext)
             throws Exception
Description copied from interface: Controller
Method associated to a tile and called immediately before the tile is included.

Specified by:
execute in interface Controller
Parameters:
tileContext - Current tile context.
request - Current request
response - Current response
servletContext - Current servlet context
Throws:
Exception
See Also:
Controller.execute(org.apache.struts.tiles.ComponentContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.