I am pretty sure that would be what the Tomcat world calls a "mapping". In IIS you would setup say, "/images" to actually be a virtual directory that points to some image server.
In tomcat you do mappings in the web.xml file. Say you have a servlet at: tomcat_path/webapps/app/WEB-INF/classes/com/mycompany/myservlet.class In WEB-INF/web.xml you do mappings to that servlet because the defined way of accessing that servlet looks lousy. http://mycompany.com/app/servlet/com/mycompany/myservlet So, in your web.xml you will have: <servlet> <servlet-name>myservlet</servlet-name> <servlet-class>com.mycompany.myservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>myservlet</servlet-name> <url-pattern>/specialfiles/*</url-pattern> </servlet-mapping> OR: <servlet-mapping> <servlet-name>myservlet</servlet-name> <url-pattern>/*.txt</url-pattern> </servlet-mapping> OR: <servlet-mapping> <servlet-name>myservlet</servlet-name> <url-pattern>/specificfolder/specificfile.html</url-pattern> </servlet-mapping> In this way you can map any url path to a particular class. But to do something like an images directory, I would suggest leaving that to Apache or IIS. Charlie > -----Original Message----- > From: James Lavoie [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 29, 2002 12:36 PM > To: [EMAIL PROTECTED] > Subject: virtual directory > > > Can anyone tell me how to create a virtual directory in Tomcat? Not sure > what the term is, but it is called a virtual directory in > Microsoft IIS. Its > basically a "handle" within the url to a folder within the file > system that > may or may not have the same name as the handle. > > Any help is appreciated > Thanks, > Jay > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
