org.infoglue.deliver.util
Class VelocityTemplateProcessor

java.lang.Object
  |
  +--org.infoglue.deliver.util.VelocityTemplateProcessor

public class VelocityTemplateProcessor
extends java.lang.Object

Author:
Mattias Bogeblad

Constructor Summary
VelocityTemplateProcessor()
           
 
Method Summary
 void dispatchJSP(java.util.Map params, java.io.PrintWriter pw, java.lang.String templateAsString)
          This methods renders a template which is written in JSP.
 void renderTemplate(java.util.Map params, java.io.PrintWriter pw, java.lang.String templateAsString)
          This method takes arguments and renders a template given as a string to the specified outputstream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityTemplateProcessor

public VelocityTemplateProcessor()
Method Detail

renderTemplate

public void renderTemplate(java.util.Map params,
                           java.io.PrintWriter pw,
                           java.lang.String templateAsString)
                    throws java.lang.Exception
This method takes arguments and renders a template given as a string to the specified outputstream. Improve later - cache for example the engine.

java.lang.Exception

dispatchJSP

public void dispatchJSP(java.util.Map params,
                        java.io.PrintWriter pw,
                        java.lang.String templateAsString)
                 throws javax.servlet.ServletException,
                        java.io.IOException,
                        java.lang.Exception
This methods renders a template which is written in JSP. The string is written to disk and then called.

Parameters:
params -
pw -
templateAsString -
Throws:
javax.servlet.ServletException
java.io.IOException
java.lang.Exception