Bill said: ... > > From a WAR in Tomcat, getServletContext().getRealPath(...) returns *null*. > > The appropriate way to load properties appears to be via getResource() > > instead of getRealPath(). > > Correct. I was just going to suggest this be changed so > velocity.properties is loaded that way along with toolbox.xml. The > velocity.properties and toolbox.xml files could be located from > /WEB-INF/classes. As a result, there would be no need to configure any > paths in VelocityViewServlet which simplifies setup.
suggest away, Bill! if you get a patch in, i'll get to asap, but i'm just swamped with studies this week. > I would also suggest that toolbox.xml be renamed to velocitytoolbox.xml > or velocitytools.xml. uh... you can name the file whatever you want. the file's name/path is specified via init-params in your web.xml, remember? :) Claude has wisely suggested in the past that we should change the param key to org.apache.velocity.tools.toolbox. that much i do plan to do at some point. Nathan Bubna [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
