velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Glass-Husain <wgl...@forio.com>
Subject Re: pls help on Velocity-servlets
Date Wed, 12 Jul 2006 05:28:25 GMT
Hi Tom,

You probably want to download the sub project Velocity Tools.  Use the 
VelocityViewServlet -- it's the best approach. 

Also, read this article.  It includes a simple tutorial

http://jakarta.apache.org/velocity/webapps.html

WILL



Tom Jerry wrote:
> hi... I have a simple servlet and velocity program.. for eg. 
> Sample.java and
> email.vm ... and when the vm file is run in a browser, nothing is
> displayed.. which means the template is not loaded properly . email.vm 
> is in
> pets folder (pets/email.vm) and Sample.class is in pets/WEB-INF/classes
> folder. I gave the simple code as :
> Template t = getTemplate ("email.vm");
>
>       I am new to Velocity... and while googling, I found that 
> webAppLoader
> is the best way to load templates. How to use it ??? And which is the 
> proper
> way.. having a velocity.properties file or setting the properties in the
> Servlet java file ??? Please guide me.
>
> Regards,
>  Snowy
>

-- 
Forio Business Simulations

Will Glass-Husain
phone (415) 440-7500 x89
mobile (415) 235-4293
wglass@forio.com
www.forio.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message