How do you do virtual directory / path mapping in a webapp

2007-01-10 Thread Barrie Selack
I am converting from Resin and there I can map a directory not inside the webapp to one which can be reached via a URL and translated by Resin as below: path-mapping url-pattern/files/*/url-pattern real-path/realdir/files/real-path /path-mapping I can't seem to find a way in Tomcat

Re: How do you do virtual directory / path mapping in a webapp

2007-01-10 Thread Tim Funk
There is no way currently. I have a patch on my local machine which allows add this functionality for FileDirContext. http://tomcat.apache.org/tomcat-5.5-doc/config/resources.html Context path=/x docBase=/usr/local/crap Resources className=org.apache.naming.resources.FileDirContext

Re: How do you do virtual directory / path mapping in a webapp

2007-01-10 Thread Barrie Selack
There is no way currently. I have a patch on my local machine which allows add this functionality for FileDirContext. http://tomcat.apache.org/tomcat-5.5-doc/config/resources.html Context path=/x docBase=/usr/local/crap Resources className=org.apache.naming.resources.FileDirContext