Hi Claude, well actually Click does rely on velocity-tools as it uses org.apache.velocity.tools.view.servlet.WebappLoader for loading Velocity templates. Click also uses concepts from Velocity Tools with a Format object used form formatting objects in templates:
http://click.sourceforge.net/docs/click-api/net/sf/click/util/Format.html The scope of the Click Framework is different than Velocity Tools. Velocity Tools provides a lowerer level library for integrating with other frameworks and general Velocity development. While Click provides a higher level web application framework which supports Page and component oriented design, event based programming model, etc. regads Malcolm Edgar On 7/14/06, Claude Brisson <[EMAIL PROTECTED]> wrote:
Malcolm, do you plan to have Click rely on velocity-tools toolbox sooner or later ? Then Click would become really interesting! Claude Le mercredi 12 juillet 2006 à 15:35 +1000, Malcolm Edgar a écrit : > <plug> > Click Framework is also a good way of using Velocity for web appliations > </plug> > > regards Malcolm Edgar > http://click.sourceforge.net > > On 7/12/06, Will Glass-Husain <[EMAIL PROTECTED]> wrote: > > > > 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 > > [EMAIL PROTECTED] > > www.forio.com > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]