org.apache.turbine.modules.pages
Class VelocityPage

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Page
          extended byorg.apache.turbine.modules.pages.DefaultPage
              extended byorg.apache.turbine.modules.pages.TemplatePage
                  extended byorg.apache.turbine.modules.pages.VelocityPage

public class VelocityPage
extends TemplatePage

Extends TemplatePage to set the template Context.

Version:
$Id: VelocityPage.java 534527 2007-05-02 16:10:59Z tv $
Author:
Dave Bryson, John D. McNally, Henning P. Schmiedehausen

Field Summary
 
Fields inherited from class org.apache.turbine.modules.pages.DefaultPage
log
 
Constructor Summary
VelocityPage()
           
 
Method Summary
protected  void doBuildBeforeAction(RunData data)
          Stuffs the Context into the RunData so that it is available to the Action module and the Screen module via getContext().
protected  void doPostBuild(RunData data)
          Allows the VelocityService to peform post-request actions.
 
Methods inherited from class org.apache.turbine.modules.pages.TemplatePage
doBuildAfterAction
 
Methods inherited from class org.apache.turbine.modules.pages.DefaultPage
doBuild
 
Methods inherited from class org.apache.turbine.modules.Page
build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityPage

public VelocityPage()
Method Detail

doBuildBeforeAction

protected void doBuildBeforeAction(RunData data)
                            throws java.lang.Exception
Stuffs the Context into the RunData so that it is available to the Action module and the Screen module via getContext().

Overrides:
doBuildBeforeAction in class DefaultPage
Parameters:
data - Turbine information.
Throws:
Exception, - a generic exception.
java.lang.Exception

doPostBuild

protected void doPostBuild(RunData data)
                    throws java.lang.Exception
Allows the VelocityService to peform post-request actions. (releases the (non-global) tools in the context for reuse later)

Overrides:
doPostBuild in class DefaultPage
Parameters:
data - Turbine information.
Throws:
java.lang.Exception


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.