You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2001/02/11 20:58:23 UTC
cvs commit: jakarta-velocity/examples README.txt
geirm 01/02/11 11:58:23
Modified: examples README.txt
Log:
Updated to add a note about Example2
Revision Changes Path
1.5 +13 -1 jakarta-velocity/examples/README.txt
Index: README.txt
===================================================================
RCS file: /home/cvs/jakarta-velocity/examples/README.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- README.txt 2000/12/06 05:38:58 1.4
+++ README.txt 2001/02/11 19:58:23 1.5
@@ -3,7 +3,7 @@
The files in this directory demonstrate how the Velocity template engine
can be used.
-1) Example.java: This simple example shows how to use the Velocity Template Engine
+1a) Example.java: This simple example shows how to use the Velocity Template Engine
in a standalone program. It should be pre-compiled for you. Run it using the example
template provided (example.vm):
@@ -19,10 +19,22 @@
(If there is a problem, make sure that the filename of the velocity jar hasn't changed. We can
be forgetful at times :)
+1b) Example2.java : Another simple example showing how to use Velocity in a standalone
+program. This examples uses the org.apache.velocity.util.Velocity application utility
+class, which provides a few convenient methods for application programmers. It also
+should be precompiled for you. To run :
+ ./example2.sh
+
+
2) SimpleServlet.java: This is a simple example of how Velocity can be used with your favorite servlet
engine. <need to review the code - gmj>
+
+3) DBContext.java : simple demonstration of a context implementation that uses a database as the
+storage. Use the DBContextTest program to test. See the DBContextTest.java file for the db table
+info. Unsupported demonstration code. You may need to futz with it to get it to work in your
+environment. To run, use the dbcontexttest.sh script.
Thanks for using Velocity!