Expresso 5-6

com.jcorporate.expresso.core.controller
Class TilesController

java.lang.Object
  extended bycom.jcorporate.expresso.core.controller.TilesController
All Implemented Interfaces:
org.apache.struts.tiles.Controller

public abstract class TilesController
extends Object
implements org.apache.struts.tiles.Controller

Implementation of the org.apache.struts.tiles.Controller interface. This allows for manipulation of the ControllerResponse for a particular tile before it is displayed, independantly of the State currently being processed. Developers should extend this class and code the execute() method.

Author:
Malcolm Wise

Constructor Summary
TilesController()
          Creates a new instance of TilesController
 
Method Summary
 void execute(org.apache.struts.tiles.ComponentContext context, ControllerRequest request, ControllerResponse response, ServletContext servletContext)
          This method will be called by the perform() method.
 void perform(org.apache.struts.tiles.ComponentContext context, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
          Implementation of perform() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilesController

public TilesController()
Creates a new instance of TilesController

Method Detail

perform

public final void perform(org.apache.struts.tiles.ComponentContext context,
                          HttpServletRequest request,
                          HttpServletResponse response,
                          ServletContext servletContext)
                   throws ServletException,
                          IOException
Implementation of perform() method. Obtains ControllerRequest and ControllerResponse from supplied HttpServletRequest and calls execute().

Specified by:
perform in interface org.apache.struts.tiles.Controller
Throws:
ServletException
IOException

execute

public void execute(org.apache.struts.tiles.ComponentContext context,
                    ControllerRequest request,
                    ControllerResponse response,
                    ServletContext servletContext)
             throws ControllerException
This method will be called by the perform() method. Subclasses should contain code to set up data to be displayed by the corresponding tile

Throws:
ControllerException

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.