Raible's Wiki
Raible Designs AppFuseHomepage- Korean - Chinese - Italian - Japanese QuickStart Guide User Guide Tutorials Other ApplicationsStruts ResumeSecurity Example Struts Menu
Set your name in
UserPreferences
Referenced by
JSPWiki v2.2.33
Hide Menu |
This is version 4.
It is not the current version, and thus it cannot be edited. Part I:: Integrating Velocity into AppFuse - A HowTo for adding the Velocity Templating engine to AppFuse applications for rendering views. About this TutorialThis tutorial will show you how to modify the Ant build script to include Velocity into the build cycle for AppFuse.Table of Contents
Download the prerequistie packages [#1]First we need to get our hands on the VelocityTools packages. These are available from the Jakarta Apache Project.Personally I used Velocity-Tools-1.0-bin, from here. Add the packages to AppFuse's lib structure [#2]The main distribution comes with all sorts of other things, including sample applications, that we don't need. We will extract the precompiled JARs (or make them if you were brave and got a source distribution). The ones we're interested in are the ones that start "velocity-". All of the other dependencies are already in AppFuse.We now need to add this to the the lib folder in your AppFuse source tree. Create a directory lib/velocity-tools-1.0. Now add the following to lib.properties
Modify the build script to include these packages [#3]Now that AppFuse is aware of the new libraries, we need to include them in the build process. Those of you scared of ant build scripts look away now.We must modify the package-web target, to add the following to the lib directives for the war task:
|