On Mon, Apr 02, 2001 at 11:48:42AM -0500, Allen Walker wrote:
> What I'm doing is this:
> 
> java.io.File xmlfile = new java.io.File (path_to_file).
> 
> Problem is, I don't know how to specify the var path_to_file other than the 
> absolute path. I find the relative path to be /jakarta-tomcat/bin, but this 
> obviously isn't where I wish to place my app config files etc. Coding 
> absolute path's is troublesome due to deployment issues. Any help appreciated.
> 
> Thanks
> -allen-
> 

You can use the ServletContext's getRealPath( context_relative_path )
method. E.g.: servletContext.getRealPath( "/WEB-INF/myconf.xml" ).
                                                              incze

Reply via email to