geirm       01/03/19 09:44:43

  Modified:    docs     developer-guide.html
  Log:
  follows xml
  
  Revision  Changes    Path
  1.38      +5 -0      jakarta-velocity/docs/developer-guide.html
  
  Index: developer-guide.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/developer-guide.html,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- developer-guide.html      2001/03/19 13:07:50     1.37
  +++ developer-guide.html      2001/03/19 17:44:41     1.38
  @@ -358,6 +358,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>
  @@ -379,6 +380,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