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
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
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,
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,
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
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
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
Hi,
I would like to know to crate .ics file (to save it outlook calendar)
using vtl
Thanks
Naren
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
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
10 matches
Mail list logo