posted 13 years ago
I need a generic (acceptable to all web servers) method of setting the root directory "/" to be webapps/myApp in web.xml? I have defined an <err-file> element in my web.xml file with a <location>err404.html</location> subelement. I want the err404.html file to reside in "webapp/myApp" folder. If I use "err404.html", it looks in the bin directory (Tomcat5.0). If I use /err404.html, it looks in C:/. I can't use a complete physical pathname, because the app may be installed on any server and the file system structure is unknown in advance.