| java.lang.Object org.apache.struts.tiles.TilesUtilImpl
All known Subclasses: org.apache.struts.tiles.TilesUtilStrutsImpl,
TilesUtilImpl | public class TilesUtilImpl implements Serializable(Code) | | Default implementation of TilesUtil.
This class contains default implementation of utilities. This implementation
is intended to be used without Struts.
|
Method Summary | |
protected DefinitionsFactory | createDefinitionFactoryInstance(String classname) Create Definition factory of specified classname.
Factory class must extend the
DefinitionsFactory class.
The factory is wrapped appropriately with
ComponentDefinitionsFactoryWrapper if it is an instance of the deprecated ComponentDefinitionsFactory class.
Parameters: classname - Class name of the factory to create. | public DefinitionsFactory | createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig) Create Definition factory from specified configuration object.
Create an instance of the factory with the class specified in the config
object. | public void | doForward(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Do a forward using request dispatcher. | public void | doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Do an include using request dispatcher. | public void | doInclude(String uri, PageContext pageContext, boolean flush) Do an include using PageContext.include(). | public DefinitionsFactory | getDefinitionsFactory(ServletRequest request, ServletContext servletContext) Get definition factory from appropriate servlet context. | protected void | makeDefinitionsFactoryAccessible(DefinitionsFactory factory, ServletContext servletContext) Make definition factory accessible to Tags. |
DEFINITIONS_FACTORY | final public static String DEFINITIONS_FACTORY(Code) | | Constant name used to store factory in servlet context
|
log | final protected static Log log(Code) | | Commons Logging instance.
|
doInclude | public void doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException(Code) | | Do an include using request dispatcher.
This method is used by the Tiles package when an include is required.
The Tiles package can use indifferently any form of this method.
Parameters: uri - Uri or Definition name to forward. Parameters: request - Current page request. Parameters: response - Current page response. Parameters: servletContext - Current servlet context. |
doInclude | public void doInclude(String uri, PageContext pageContext, boolean flush) throws IOException, ServletException(Code) | | Do an include using PageContext.include().
This method is used by the Tiles package when an include is required.
The Tiles package can use indifferently any form of this method.
Parameters: uri - Uri or Definition name to forward. Parameters: pageContext - Current page context. Parameters: flush - If the writer should be flushed before the include |
makeDefinitionsFactoryAccessible | protected void makeDefinitionsFactoryAccessible(DefinitionsFactory factory, ServletContext servletContext)(Code) | | Make definition factory accessible to Tags.
Factory is stored in servlet context.
Parameters: factory - Factory to be made accessible. Parameters: servletContext - Current servlet context. |
|
|