velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Gaspar" <paulo.gas...@krankikom.de>
Subject RE: The "proper" way to configure/deploy Velocity servlets on an app server?
Date Mon, 12 Nov 2001 11:32:51 GMT
Thanks Endre,

Is the most complete and simpler explanation I ever red about this issue.
=:o)


Have fun,
Paulo

> -----Original Message-----
> From: Endre Stolsvik [mailto:Endre@Stolsvik.com]
> Sent: Monday, November 12, 2001 10:05 AM
>
> There might be no path for your war/ear file. It might come off a
> database.. Or a CDrom.. or whatever. So do not expect paths to exist at
> all.
>
> Instead, you will have to rely on the servlet container to fetch stuff for
> you. (btw; a servlet container shall provide temporary directory for you
> to write files i, you find this by some env.variable).
>
> To get things relative to the webroot, use
> servlet.getServletConfig().getServletContext().getResource[AsStrea
> m](String
> resource). Read the javadocs. This resource will come off the webroot, and
> to get stuff inside WEB-INF, you specify e.g.
> "/WEB-INF/thefile.properties" as the resource name.
>
>
> --
> Mvh,
> Endre


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message