Package org.apache.struts2.sitemesh
Class OldDecorator2NewStrutsVelocityDecorator
java.lang.Object
com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
org.apache.struts2.sitemesh.OldDecorator2NewStrutsDecorator
org.apache.struts2.sitemesh.OldDecorator2NewStrutsVelocityDecorator
- All Implemented Interfaces:
com.opensymphony.module.sitemesh.RequestConstants
,com.opensymphony.sitemesh.Decorator
Extends OldDecorator2NewStrutsDecorator to add Struts functionality for Velocity
-
Field Summary
Fields inherited from class org.apache.struts2.sitemesh.OldDecorator2NewStrutsDecorator
oldDecorator
Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants
DECORATOR, DISABLE_BUFFER_AND_DECORATION, MAXIMUM_OUTPUT_EXCEEDED_LENGTH, PAGE, ROBOT, SECONDARY_STORAGE_LIMIT
-
Constructor Summary
ConstructorsConstructorDescriptionOldDecorator2NewStrutsVelocityDecorator
(com.opensymphony.module.sitemesh.Decorator oldDecorator) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
render
(com.opensymphony.sitemesh.Content content, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, com.opensymphony.xwork2.ActionContext ctx) Applies the decorator, using the relevent contextsstatic void
setVelocityManager
(org.apache.struts2.views.velocity.VelocityManager mgr) Methods inherited from class org.apache.struts2.sitemesh.OldDecorator2NewStrutsDecorator
getEncoding, getLocale, render
Methods inherited from class com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
render
-
Constructor Details
-
OldDecorator2NewStrutsVelocityDecorator
public OldDecorator2NewStrutsVelocityDecorator(com.opensymphony.module.sitemesh.Decorator oldDecorator)
-
-
Method Details
-
setVelocityManager
public static void setVelocityManager(org.apache.struts2.views.velocity.VelocityManager mgr) -
render
protected void render(com.opensymphony.sitemesh.Content content, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, com.opensymphony.xwork2.ActionContext ctx) throws jakarta.servlet.ServletException, IOException Applies the decorator, using the relevent contexts- Specified by:
render
in classOldDecorator2NewStrutsDecorator
- Parameters:
content
- The contentrequest
- The servlet requestresponse
- The servlet responseservletContext
- The servlet contextctx
- The action context for this request, populated with the server state- Throws:
jakarta.servlet.ServletException
IOException
-