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 TypeMethodDescriptionboolean
isRenderable
(String path, Request request) Checks if this renderer can render a path.protected ActionContext
readActionContext
(Request request) Depending on how Tiles definition was defined, request can an instance of JspRequest (for JSPs) or a ServletRequest (FreeMarker)protected void
This register dedicated BeanModel to support tiles tags.void
Renders a path.
-
Constructor Details
-
StrutsFreeMarkerAttributeRenderer
public StrutsFreeMarkerAttributeRenderer()
-
-
Method Details
-
render
Description copied from interface:Renderer
Renders a path.- Specified by:
render
in 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:Renderer
Checks 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:
isRenderable
in interfaceRenderer
- Parameters:
path
- The path to be rendered.request
- The request context.- Returns:
true
if this renderer can render the attribute.
-
registerTilesBeanModel
This register dedicated BeanModel to support tiles tags. It requiresJspSupportServlet
to be registered in web.xml
-