logo       

RE: Install and Use: msg#00147

jakarta.velocity.user

Subject: RE: Install and Use

Gregg -

> That did help explain some things. However, what about that
> Hello Velocity
> World! example they show in the user giude. Is there any way
> to get that to
> work without a Servlet? The user guide doesn't show what
> needs to be done to get that example to work the way it is.

Ha. I've been on the list for ages, and I don't think that one has come
up. ;-)

The User's Guide is for folks who are simply writing templates and to
them how $foo becomes "Velocity" is just 'magic'.

The Developer's Guide is for folks who are making the magic. :-)

One of the [many many many] ways to make this magic happen would be to
use the VelocityViewServlet from the VelocityTools sub-project. This
would let you run Tomcat and place that Hello World snippet inside a
"helloworld.vm" file which would be processed by the VelocityViewServlet
using a VelocityEngine.

http://www.happysearch.com/velocity/tools/docs/view/

If you check this out of CVS and build it, there is a "simple.war" that
does this exact thing I've described and can be dropped into the
tomcat/webapps dir and It Should Just Work(tm).


-Timo


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise