org.hdpagination.web.view
Class TilesView

java.lang.Object
  extended by org.hdpagination.web.view.TilesView
All Implemented Interfaces:
View

public class TilesView
extends java.lang.Object
implements View

Implementation of View interface to render page based on Tiles 1.x, a.k.a. "Struts Tiles", which comes as part of Struts 1.x. For Tiles 2.x support, check out Tiles2View

Since:
1.0.2
Author:
Liangfeng Ren

Constructor Summary
TilesView()
           
 
Method Summary
protected  org.apache.struts.tiles.ComponentContext getComponentContext(org.apache.struts.tiles.ComponentDefinition definition, javax.servlet.http.HttpServletRequest request)
          Determine the Tiles component context for the given Tiles definition.
 void render(java.lang.String forwardTo, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Render content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilesView

public TilesView()
Method Detail

render

public void render(java.lang.String forwardTo,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.lang.Exception
Description copied from interface: View
Render content

Specified by:
render in interface View
Parameters:
forwardTo - The destination resource to which request forwards to. In InternalResourceView it is interpreted as JSP file or URL of other resource; In Tiles2View it is interpreted as name of a Tiles definition.
Throws:
java.lang.Exception

getComponentContext

protected org.apache.struts.tiles.ComponentContext getComponentContext(org.apache.struts.tiles.ComponentDefinition definition,
                                                                       javax.servlet.http.HttpServletRequest request)
                                                                throws java.lang.Exception
Determine the Tiles component context for the given Tiles definition.

Parameters:
definition - the Tiles definition to render
request - current HTTP request
Returns:
the component context
Throws:
java.lang.Exception - if preparations failed


Copyright © 2008 HDPagination All Rights Reserved.