com.opensymphony.sitemesh.webapp.decorator
Class ExternalDispatchedDecorator

java.lang.Object
  extended by com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
      extended by com.opensymphony.sitemesh.webapp.decorator.DispatchedDecorator
          extended by com.opensymphony.sitemesh.webapp.decorator.ExternalDispatchedDecorator
All Implemented Interfaces:
Decorator

public class ExternalDispatchedDecorator
extends DispatchedDecorator

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
private  String webApp
           
 
Fields inherited from class com.opensymphony.sitemesh.webapp.decorator.DispatchedDecorator
CONTENT_KEY, CONTEXT_KEY
 
Constructor Summary
ExternalDispatchedDecorator(String path, String webApp)
           
 
Method Summary
protected  ServletContext locateWebApp(ServletContext context)
           
 
Methods inherited from class com.opensymphony.sitemesh.webapp.decorator.DispatchedDecorator
render
 
Methods inherited from class com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webApp

private final String webApp
Constructor Detail

ExternalDispatchedDecorator

public ExternalDispatchedDecorator(String path,
                                   String webApp)
Method Detail

locateWebApp

protected ServletContext locateWebApp(ServletContext context)
Overrides:
locateWebApp in class DispatchedDecorator

www.opensymphony.com/sitemesh/