Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Shinobu Kawai Yoshida
Hi Barbara, Right now, I believe most of the Velocity convenience servlets are using the Singleton model. Hopefully, that will change. I have written my own servlet extending HttpServlet which uses the VelocityEngine object. The latest VelocityViewServlet in the SVN repository uses the

Re: Programmatically getting to/setting ResourceLoader

2005-01-21 Thread Shinobu Kawai Yoshida
Hi, 2) is it possible to programmatically get the current __instance__ of the configured ResourceLoader? On Thu, 20 Jan 2005 22:35:29 -0800, Will Glass-Husain [EMAIL PROTECTED] wrote: But no, you can not retrieve it later. (For one thing, there might be multiple resource loaders). If

Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Carfield Yim
You mean I should set the classloader using the following statement? // by default, load resources with webapp resource loader velocity.setProperty(RuntimeConstants.RESOURCE_LOADER, webapp); velocity.setProperty(webapp.resource.loader.class,

Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Shinobu Kawai Yoshida
Hi Carfield, You mean I should set the classloader using the following statement? // by default, load resources with webapp resource loader velocity.setProperty(RuntimeConstants.RESOURCE_LOADER, webapp); velocity.setProperty(webapp.resource.loader.class,

Re: Many calls to init(Object o) in tool extending ViewTool in request scop

2005-01-21 Thread Claude Brisson
On Thu, 2005-01-20 at 14:15 -0500, Matt Higgins wrote: The subject explains most of it.. I have a simple print line in the init function of my tool. On every page I hit .. including pages that don't use the tool (This makes some sense to me), the init function is called 22 times. This seams

Re: Comments in Velocity maps ..

2005-01-21 Thread Shinobu Kawai Yoshida
Hi Brad, I have a quick question regarding maps and nesting comments in them. I have a map as follows: #set( $foo = { 1 : Baz, 2 : Bat, 3 : Bar }) When I change it to have comment(s) nested within: #set( $foo = { ## Products 1 : Baz, 2 : Bat, 3 : Bar }) I get a Parser

Re: Texen example is not producing three different files

2005-01-21 Thread Shinobu Kawai Yoshida
Hi Roger, I followed the texen example given on the website. The output I am getting is one sinlge file named generation.report which is mentioned as the outputfile in the build.xml . I would like to have three different output files and the example says that the the build should produce

vcs or ics file using vtl

2005-01-21 Thread Narendra,Nuggihalli
Hi, I would like to know to crate .ics file (to save it outlook calendar) using vtl Thanks Naren

Re: Email VM DateTool Usage Problem

2005-01-21 Thread John Mahan
Mike (et al) I would appreciate some insight into how one tells the Velociy instance to import java.util.date and/or the DateTool. I'm using the following Velocity code that works OK in my main instance but will not render in the Email instance: $date.format('E, d

Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Carfield Yim
I think ServletContext#getResourceAsStream() will work either, so I try to add the following properities, but I find that org.apache.velocity.tools.view.servlet.WebappLoader Is not exist in velocity-1.5-dev.jar... where can I find it? Or in fact just juse classpathloader is already able to load