org.apache.struts2.tiles
Class StrutsTilesUtilImpl

java.lang.Object
  extended by org.apache.tiles.TilesUtilImpl
      extended by org.apache.struts2.tiles.StrutsTilesUtilImpl
All Implemented Interfaces:
java.io.Serializable

public class StrutsTilesUtilImpl
extends org.apache.tiles.TilesUtilImpl

Default implementation of TilesUtil. This class contains default implementation of utilities. This implementation is intended to be used without Struts. TilesUtilImpl implementation used to intercept .ftl requests and ensure that they are setup properly to take advantage of the FreemarkerResult.

Version:
$Id$
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.tiles.TilesUtilImpl
DEFINITIONS_FACTORY, DEFINITIONS_OBJECT, log
 
Constructor Summary
StrutsTilesUtilImpl()
          Default constructor.
StrutsTilesUtilImpl(java.lang.String mask)
          Optional constructor used to specify a specific mask.
 
Method Summary
 void doInclude(java.lang.String string, javax.servlet.jsp.PageContext pageContext, boolean b)
          Enhancement of the default include which allows for freemarker templates to be intercepted so that the FreemarkerResult can be used in order to setup the appropriate model.
 
Methods inherited from class org.apache.tiles.TilesUtilImpl
createDefinitionFactoryInstance, createDefinitionsFactory, doForward, doInclude, getDefinition, getDefinitionsFactory, getFilenames, makeDefinitionsAccessible, makeDefinitionsFactoryAccessible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrutsTilesUtilImpl

public StrutsTilesUtilImpl()
Default constructor. Sets the mask to '.ftl'


StrutsTilesUtilImpl

public StrutsTilesUtilImpl(java.lang.String mask)
Optional constructor used to specify a specific mask.

Parameters:
mask -
Method Detail

doInclude

public void doInclude(java.lang.String string,
                      javax.servlet.jsp.PageContext pageContext,
                      boolean b)
               throws java.lang.Exception
Enhancement of the default include which allows for freemarker templates to be intercepted so that the FreemarkerResult can be used in order to setup the appropriate model.

Overrides:
doInclude in class org.apache.tiles.TilesUtilImpl
Parameters:
string - the included resource
pageContext - the current page context
b - whether or not a flush should occur
Throws:
java.io.IOException
javax.servlet.ServletException
java.lang.Exception


Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.