uk.co.lakesidetech.springxmldb.spring.web.tiles
Class ControllerDelegatingTilesComponent
java.lang.Object
org.apache.struts.tiles.ControllerSupport
org.springframework.web.servlet.view.tiles.ComponentControllerSupport
uk.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
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 |
ControllerDelegatingTilesComponent
public ControllerDelegatingTilesComponent()
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