Package org.apache.struts2.tiles
Class StrutsFreeMarkerAttributeRenderer
java.lang.Object
org.apache.struts2.tiles.StrutsFreeMarkerAttributeRenderer
- All Implemented Interfaces:
Renderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRenderable(String path, Request request) Checks if this renderer can render a path.protected ActionContextreadActionContext(Request request) Depending on how Tiles definition was defined, request can an instance of JspRequest (for JSPs) or a ServletRequest (FreeMarker)protected voidThis register dedicated BeanModel to support tiles tags.voidRenders a path.
-
Constructor Details
-
StrutsFreeMarkerAttributeRenderer
public StrutsFreeMarkerAttributeRenderer()
-
-
Method Details
-
render
Description copied from interface:RendererRenders a path.- Specified by:
renderin interfaceRenderer- Parameters:
path- The path to render.request- The Tiles request context.- Throws:
IOException- If something goes wrong during rendition.
-
readActionContext
Depending on how Tiles definition was defined, request can an instance of JspRequest (for JSPs) or a ServletRequest (FreeMarker) -
isRenderable
Description copied from interface:RendererChecks if this renderer can render a path. Note that this does not mean it is the best renderer available, but checks only its capability.- Specified by:
isRenderablein interfaceRenderer- Parameters:
path- The path to be rendered.request- The request context.- Returns:
trueif this renderer can render the attribute.
-
registerTilesBeanModel
This register dedicated BeanModel to support tiles tags. It requiresJspSupportServletto be registered in web.xml
-