Differences between revisions 2 and 3
Revision 2 as of 2005-10-02 04:49:32
Size: 800
Comment: move from contrib to Wiki
Revision 3 as of 2009-09-20 22:06:27
Size: 804
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
attachment:EnhydraVelocityDownload.zip [[attachment:EnhydraVelocityDownload.zip]]

This is a simple example of how Velocity may be used with Enhydra.

How to set-up:

1. Add the velocity jar and the velocity service classes ( see classes dir )

  • to your classpath. Optionally, you can add this info to the config.mk and start.in files of your application

2. Add the following line to your Enhydra application conf file:

  • velocity = "THE FULL PATH TO VELOCITY PROPERTIES FILE" Example: velocity = "/dave/enhydraApps/VelocityApplication/velocity.properties"

3. Set the path to your template directory in the velocity.properties file:

  • file.resource.loader.path = "FULL PATH TO THE TEMPLATES DIRECTORY" Example: file.resource.loader.path = /dave/enhydraApps/VelocityApplication/templates

Have fun...

EnhydraVelocityDownload.zip

EnhydraVelocity (last edited 2009-09-20 22:06:27 by localhost)