Re: ClasspathResourceLoader trouble loading images, css

2007-04-15 Thread David Donohue
binary > files such as images are problematic. > > Maybe use ClassLoader.getSystemResourceAsStream () instead? > > WILL > > On 4/14/07, David Donohue < [EMAIL PROTECTED]> wrote: > > > > I am enjoying using VelocityLayoutServlet with > > ClasspathR

Fwd: ClasspathResourceLoader trouble loading images, css

2007-04-15 Thread David Donohue
if (in != null) { in.close(); } if (out != null) { out.close(); } } } } -- Forwarded message -- From: David Donohue <[EMAIL PROTECTED]> Date: Apr 15, 2007 12:31 AM Subject: ClasspathResourceLoader trouble loading images, css To: Velocity Users List I am

ClasspathResourceLoader trouble loading images, css

2007-04-14 Thread David Donohue
I am enjoying using VelocityLayoutServlet with ClasspathResourceLoader. VM files load great, and the layout loads wonderfully too. The trick is: how can I get images, CSS, and other static content to load via classpath as well? Or how can I get them load at all? THANKS! David

Re: problem with toolbox request-path wildcards?

2007-04-02 Thread David Donohue
week or two to get the release out. If you can't wait for the fix, then feel free to check out the latest code from the trunk in Subversion, build it yourself, and use that. On 4/2/07, David Donohue <[EMAIL PROTECTED]> wrote: > Hello! > I am finding the request-path in toolbo

problem with toolbox request-path wildcards?

2007-04-02 Thread David Donohue
Hello! I am finding the request-path in toolbox.xml does not behave as I would expect when I use the wildcard * I am using Velocity 1.5, VelocityTools 1.3, and the ClasspathResourceLoader, with this in velocity.properties: class.resource.loader.class = org.apache.velocity.runtime.resource.loader.

Re: how to configure Velocity entirely programmatically?

2007-03-29 Thread David Donohue
sourceAsStream(toolboxFile); is = new FileInputStream(toolboxFile); On 3/29/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: On 3/29/07, David Donohue <[EMAIL PROTECTED]> wrote: > Nathan and friends, > I followed Nathan's fine, detailed instructions on config

Re: how to configure Velocity entirely programmatically?

2007-03-29 Thread David Donohue
Nathan and friends, I followed Nathan's fine, detailed instructions on configuring my Velocity Tools 1.3 servlet programmatically. I am running into difficulty with the toolbox. Nathan described this ServletContext application = config.getServletContext(); toolboxManager = ServletToolboxManager

Re: how to configure Velocity entirely programmatically?

2007-03-27 Thread David Donohue
Tools 2.0 dev, feel free to subscribe to the [EMAIL PROTECTED] list and or checkout the source so far from: http://svn.apache.org/repos/asf/velocity/tools/branches/2.x/ On 3/27/07, David Donohue <[EMAIL PROTECTED]> wrote: > Thanks, Nathan for your fine reply! I had looked at the toolbox A

Re: how to configure Velocity entirely programmatically?

2007-03-27 Thread David Donohue
I am pretty sure this can support fully programmatic configuration of a WebAppContext (not exactly sure how yet). I look forward to your further explanation, and to Tools 2.0 as well! David On 3/27/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: On 3/27/07, David Donohue <[EMAIL PROTECTE

how to configure Velocity entirely programmatically?

2007-03-27 Thread David Donohue
Sorry if this has been addressed but I have searched and cannot find the complete answer. Can anyone kindly point me to a tutorial or example code showing how I would completely configure Velocity programmatically? Specifically, I wish to configure a VelocityViewServlet with a toolbox, but withou