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
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
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
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
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.
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
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
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
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
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
10 matches
Mail list logo