geirm       01/03/19 09:44:25

  Modified:    xdocs    developer-guide.xml
  Log:
  Added note about initialization in 'the fundamental pattern', and also
  added requisite import statements.
  
  Revision  Changes    Path
  1.26      +5 -0      jakarta-velocity/xdocs/developer-guide.xml
  
  Index: developer-guide.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/xdocs/developer-guide.xml,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- developer-guide.xml       2001/03/19 13:07:32     1.25
  +++ developer-guide.xml       2001/03/19 17:44:24     1.26
  @@ -242,6 +242,7 @@
   (or anywhere, actually), you will generally do the following :
   
   <ol>
  +<li>Initialize Velocity. (You only do this once.)</li>
   <li>Create a Context object (more on what that is later).</li>
   <li>Add your data objects to the Context.</li>
   <li>Choose a template.</li>
  @@ -255,6 +256,10 @@
   import java.io.StringWriter;
   import org.apache.velocity.VelocityContext;
   import org.apache.velocity.runtime.Runtime;
  +import org.apache.velocity.Template;
  +import org.apache.velocity.app.Velocity;
  +
  +Velocity.init();
   
   VelocityContext context = new VelocityContext();
   
  
  
  

Reply via email to