Class DispatchedDecorator
java.lang.Object
com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
com.opensymphony.sitemesh.webapp.decorator.DispatchedDecorator
- All Implemented Interfaces:
Decorator
- Direct Known Subclasses:
ExternalDispatchedDecorator
Decorator that dispatches to another path in the Servlet Container (such as a JSP or path mapped to a Servlet).
The Content and SiteMeshContext objects are passed to the decorator using the HttpServletRequest attributes
To dispatch to a decorator in another web-app on the same server, use
The Content and SiteMeshContext objects are passed to the decorator using the HttpServletRequest attributes
CONTENT_KEY and CONTEXT_KEY.
To dispatch to a decorator in another web-app on the same server, use
ExternalDispatchedDecorator.- Since:
- SiteMesh 3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.servlet.ServletContextlocateWebApp(jakarta.servlet.ServletContext context) protected voidrender(Content content, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, SiteMeshWebAppContext webAppContext) More convenient version ofBaseWebAppDecorator.render(com.opensymphony.sitemesh.Content, com.opensymphony.sitemesh.SiteMeshContext)suited for Servlet API calls.Methods inherited from class com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
render
-
Field Details
-
CONTENT_KEY
- See Also:
-
CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
DispatchedDecorator
-
-
Method Details
-
render
protected void render(Content content, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, SiteMeshWebAppContext webAppContext) throws IOException, jakarta.servlet.ServletException Description copied from class:BaseWebAppDecoratorMore convenient version ofBaseWebAppDecorator.render(com.opensymphony.sitemesh.Content, com.opensymphony.sitemesh.SiteMeshContext)suited for Servlet API calls.- Specified by:
renderin classBaseWebAppDecorator- Throws:
IOExceptionjakarta.servlet.ServletException
-
locateWebApp
protected jakarta.servlet.ServletContext locateWebApp(jakarta.servlet.ServletContext context)
-