com.arsdigita.acs
Class TemplateTranslator.IncludeHandler

java.lang.Object
  |
  +--com.arsdigita.acs.TemplateTranslator.IncludeHandler
Enclosing class:
TemplateTranslator

public static class TemplateTranslator.IncludeHandler
extends java.lang.Object

Helper class to perform the function of an include tag


Constructor Summary
TemplateTranslator.IncludeHandler(javax.servlet.jsp.PageContext pc, ACSForm form, java.lang.String includeUrl)
          Constructs a new include-tag handler for a given JSP page context and a given request URL to include.
 
Method Summary
 boolean run()
          Includes the supplied template, setting the ThreadLocal for ACSForm so that the included page can use ad_page_contract if it wants.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateTranslator.IncludeHandler

public TemplateTranslator.IncludeHandler(javax.servlet.jsp.PageContext pc,
                                         ACSForm form,
                                         java.lang.String includeUrl)
Constructs a new include-tag handler for a given JSP page context and a given request URL to include.
Parameters:
pc - page context of parent template
form - a form full of the variables to pass to the included template
includeUrl - *unresolved* url of template to include
Method Detail

run

public boolean run()
            throws javax.servlet.ServletException,
                   java.io.IOException
Includes the supplied template, setting the ThreadLocal for ACSForm so that the included page can use ad_page_contract if it wants.
Returns:
always true