velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Baynes" <kbay...@seagullsw.com>
Subject RE: VelocityViewServlet and velocity.properties
Date Thu, 03 Oct 2002 13:38:59 GMT

> Strongly suggest you change it to:
>
>        p.setProperty( Velocity.FILE_RESOURCE_LOADER_PATH,  path +
> "/WEB-INF/web/" );

One more note:

Does Velocity account for the slashes "/" in paths on different systems?
I thought for system independence you should not hard-code the "/" and
should use 'File.separatorChar' instead:

p.setProperty( Velocity.FILE_RESOURCE_LOADER_PATH,  path +
File.separatorChar + "WEB-INF" + File.separatorChar + "web" +
File.separatorChar );

and

p.setProperty( "runtime.log", path + File.separatorChar + "velocity.log" );


~k


--
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