Class ExternalDispatchedDecorator
java.lang.Object
com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
com.opensymphony.sitemesh.webapp.decorator.DispatchedDecorator
com.opensymphony.sitemesh.webapp.decorator.ExternalDispatchedDecorator
- All Implemented Interfaces:
Decorator
Decorator that dispatches to another path in A DIFFERENT WEB-APP in the same 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
DispatchedDecorator.CONTENT_KEY and DispatchedDecorator.CONTEXT_KEY.
To dispatch to a decorator in the same web-app, use DispatchedDecorator.
- Since:
- SiteMesh 3.0
- Author:
- Joe Walnes
-
Field Summary
Fields inherited from class com.opensymphony.sitemesh.webapp.decorator.DispatchedDecorator
CONTENT_KEY, CONTEXT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionExternalDispatchedDecorator(String path, String webApp) Instantiates a new external dispatched decorator. -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.servlet.ServletContextlocateWebApp(javax.servlet.ServletContext context) Locate web app.Methods inherited from class com.opensymphony.sitemesh.webapp.decorator.DispatchedDecorator
renderMethods inherited from class com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
render
-
Constructor Details
-
ExternalDispatchedDecorator
Instantiates a new external dispatched decorator.- Parameters:
path- the pathwebApp- the web app
-
-
Method Details
-
locateWebApp
protected javax.servlet.ServletContext locateWebApp(javax.servlet.ServletContext context) Description copied from class:DispatchedDecoratorLocate web app.- Overrides:
locateWebAppin classDispatchedDecorator- Parameters:
context- the context- Returns:
- the servlet context
-