org.apache.struts.tiles

Class ActionController

Implemented Interfaces:
Controller

public class ActionController
extends java.lang.Object
implements Controller

Struts wrapper implementation of Controller. This implementation allows to wrap a Struts Action in a Controller.

Field Summary

private Action
action
Struts action wrapped.

Constructor Summary

ActionController(Action action)
Constructor.

Method Summary

void
perform(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
Method associated to a tile and called immediately before tile is included.

Field Details

action

private Action action
Struts action wrapped.

Constructor Details

ActionController

public ActionController(Action action)
Constructor.

Parameters:
action - Action to be wrapped.

Method Details

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.


Copyright B) 2000-2005 - Apache Software Foundation