velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles N. Harvey III" <>
Subject RE: Velocity vs. Servlets
Date Tue, 05 Nov 2002 19:15:39 GMT
The VelocityViewServlet in the tools subproject is also very helpful.
You write regular servlets but the view layer is all velocity pages:
"page.vm".  In web.xml you map *.vm -> VelocityViewServlet.  All of
your requests are processed as usual, then handed off to the VVS
which examines your request and session object (possibly more) and
makes all the values accessible by velocity templates.

Its worth checking out, I think its a great product.


> -----Original Message-----
> From: Philipp Leusmann []
> Sent: Tuesday, November 05, 2002 1:26 PM
> To:
> Subject: Velocity vs. Servlets
> Hi,
> I am currently in the process of beginning to write a
> web-application. Since
> the design has to be customizable I would like to use Velocity as
> a template
> engine.
> But what is not quite clear to me, yet, is the way how servlets using
> velocity compare to servlets written usings SunĀ“s Servlet API.
> Will I have to write everything in the Sun-servlet-style and only use
> subclasses of VelocityServlet instead of subclasses of HTTPServlet and the
> rest stays the same (for example Listeners etc)? Or will I have to go a
> completely different way?
> Hope you can answer my question,
>  Philipp
> --
> To unsubscribe, e-mail:
> <>
> For additional commands, e-mail:
> <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message