Jon Stevens wrote:
> fyi, the difference is that I had to add a "./" to the front of a parameter
> to a file that I was passing in...
>
> <init-param>
> <param-name>properties</param-name>
> <!-- This is relative to the docBase -->
> <param-value>
> ./WEB-INF/conf/TurbineResources.properties
> </param-value>
> </init-param>
>
> I didn't have to have that before.
>
> -jon
Are you accessing the properties file via ServletContext.getResource() or
ServletContext.getResourceAsStream()? If so, it should be accessed with a
standard context-relative path like
"/WEB-INF/conf/TurbineResources.properties". The path normalization code in
Tomcat does this to your "./" anyway, so the "." should actually be redundant
(unless you depend on it for some application specific reason).
Craig