Re: relative path to real one

2001-07-16 Thread Aditya Anand
Use ServletContext.getRealPath(xyz); to do this. This assumes that xyz is a resource in your context root --- Jaume Pausas [EMAIL PROTECTED] wrote: Hi! Is it possible to translate a relative path to its absolute one in the web pages under Tomcat 4.0b5? So if I have a context named

Re: relative path to real one

2001-07-16 Thread Jaume Pausas
Hi! Use ServletContext.getRealPath(xyz); to do this. This assumes that xyz is a resource in your context root Is it possible to translate a relative path to its absolute one in the web pages under Tomcat 4.0b5? hmm but I talking about static resources, calling from a web page