org.apache.struts2.sitemesh
Class OldDecorator2NewStrutsFreemarkerDecorator

java.lang.Object
  extended by com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
      extended by org.apache.struts2.sitemesh.OldDecorator2NewStrutsDecorator
          extended by org.apache.struts2.sitemesh.OldDecorator2NewStrutsFreemarkerDecorator
All Implemented Interfaces:
com.opensymphony.module.sitemesh.RequestConstants, com.opensymphony.sitemesh.Decorator

public class OldDecorator2NewStrutsFreemarkerDecorator
extends OldDecorator2NewStrutsDecorator

Extends OldDecorator2NewStrutsDecorator to add Struts functionality for Freemarker


Field Summary
 
Fields inherited from class org.apache.struts2.sitemesh.OldDecorator2NewStrutsDecorator
oldDecorator
 
Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants
DECORATOR, PAGE, ROBOT
 
Constructor Summary
OldDecorator2NewStrutsFreemarkerDecorator(com.opensymphony.module.sitemesh.Decorator oldDecorator)
           
 
Method Summary
protected  void render(com.opensymphony.sitemesh.Content content, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, ActionContext ctx)
          Applies the decorator, using the relevent contexts
static void setFreemarkerManager(FreemarkerManager mgr)
           
 
Methods inherited from class org.apache.struts2.sitemesh.OldDecorator2NewStrutsDecorator
getEncoding, getLocale, render
 
Methods inherited from class com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OldDecorator2NewStrutsFreemarkerDecorator

public OldDecorator2NewStrutsFreemarkerDecorator(com.opensymphony.module.sitemesh.Decorator oldDecorator)
Method Detail

setFreemarkerManager

public static void setFreemarkerManager(FreemarkerManager mgr)

render

protected void render(com.opensymphony.sitemesh.Content content,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      javax.servlet.ServletContext servletContext,
                      ActionContext ctx)
               throws javax.servlet.ServletException,
                      java.io.IOException
Applies the decorator, using the relevent contexts

Specified by:
render in class OldDecorator2NewStrutsDecorator
Parameters:
content - The content
request - The servlet request
response - The servlet response
servletContext - The servlet context
ctx - The action context for this request, populated with the server state
Throws:
javax.servlet.ServletException
java.io.IOException


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