uk.co.lakesidetech.springxmldb.spring.web.tiles
Class ControllerDelegatingTilesComponent

java.lang.Object
  extended byorg.apache.struts.tiles.ControllerSupport
      extended byorg.springframework.web.servlet.view.tiles.ComponentControllerSupport
          extended byuk.co.lakesidetech.springxmldb.spring.web.tiles.ControllerDelegatingTilesComponent
All Implemented Interfaces:
org.apache.struts.tiles.Controller

public class ControllerDelegatingTilesComponent
extends org.springframework.web.servlet.view.tiles.ComponentControllerSupport

The ControllerDelegatingTilesComponent is used to delegate from a configured tiles component to a spring controller. The controller name is defined as a tiles attribute in the definition file. All values of the resulting model are then set in the TilesContext and the view is ignored as the view rendering is allready specified in tiles.

NOTE this isnt a good way of integrating tiles but can be used to quickly integrate some existing controllers. The real way to integrate tiles is to use Spring controllers as normal and treat tiles definitions as just views for them to resolve.

Author:
Stuart Eccles

Constructor Summary
ControllerDelegatingTilesComponent()
           
 
Method Summary
protected  void doPerform(org.apache.struts.tiles.ComponentContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          perform the tiles action
 
Methods inherited from class org.springframework.web.servlet.view.tiles.ComponentControllerSupport
execute, getApplicationContext, getMessageSourceAccessor, getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerDelegatingTilesComponent

public ControllerDelegatingTilesComponent()
Method Detail

doPerform

protected void doPerform(org.apache.struts.tiles.ComponentContext context,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.lang.Exception
perform the tiles action

Throws:
java.lang.Exception