Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 14638 invoked from network); 2 Aug 2002 23:30:18 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Aug 2002 23:30:18 -0000 Received: (qmail 70 invoked by uid 97); 2 Aug 2002 23:30:02 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 29954 invoked by uid 97); 2 Aug 2002 23:30:02 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29857 invoked by uid 98); 2 Aug 2002 23:30:01 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-igwMailID: g72NSfB154884.U02 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: adding a virtual directory X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Date: Fri, 2 Aug 2002 17:29:55 -0600 Message-ID: <937C569D59958647808DB338926A1D3F292EE9@keystone.Eppendorf-5Prime.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: adding a virtual directory Thread-Index: AcI6edD0QXQFozulT6Wq6qNMRiPyuwAAiM0w From: "Rutledge, Aaron" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks, I guess I'll just stick with adding the context to server.xml. I wish there was a way to specify multiple doc-bases in an applications web.xml for different URL mappings kind of like there is for servlets. Oh well... =20 -----Original Message----- From: rsequeira@transentric.com [mailto:rsequeira@transentric.com] Sent: Friday, August 02, 2002 5:07 PM To: Tomcat Users List Subject: RE: adding a virtual directory You could define a servlet that takes care of this for you. And add that mapping to the $CATALINA_HOME/conf/web.xml file. The org.apache.jasper.servlet.JspServlet does something like this. It looks for a *.jsp in the URL. See $CATALINA_HOME/conf/web.xml and source code for org.apache.jasper.servlet.JspServlet for more details RS =20 "Rutledge, Aaron" =20 cc: 08/02/02 05:04 PM Subject: RE: adding a virtual directory =20 Please respond to "Tomcat Users List" =20 =20 The goal is to get that mapped drive into the context of my web-app. Regardless of wether the folder is on or off the server--how do I map a virtual folder from web.xml. Is it possible? I want everything with a certain URL pattern to request content from a folder that is not in the usual place. Thanks! Aaron -----Original Message----- From: rsequeira@transentric.com [mailto:rsequeira@transentric.com] Sent: Friday, August 02, 2002 3:55 PM To: Tomcat Users List Subject: Re: adding a virtual directory Assuming you are using Windows OS, you could map a drive on the source machine pointing to the shared destination directory. Ofcourse you could run into a few problems if "my_ap" is the Context and "my_dir" isn't under "my_ap". RS "Rutledge, Aaron" cc: 08/02/02 04:49 PM Subject: adding a virtual directory Please respond to "Tomcat Users List" I'm sorry for this very basic question, but I can't find an answer anywhere. Within my web application I would like to map everything requested from one directory (such as http://my.com/my_ap/my_dir) to another directory located on another server (mapped like \\Server_name\directory\my_static_content). Can I do this from my application's web.xml or only by specifying a virtual directory in server.xml? I would rather keep everything self-contained so that I can deploy it on other servers without modifying the server.xml on each machine deployed. Surely there is a way to do this? Any help would be greatly appreciated! Regards, Aaron -- To unsubscribe, e-mail: < mailto:tomcat-user-unsubscribe@jakarta.apache.org> For additional commands, e-mail: < mailto:tomcat-user-help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: < mailto:tomcat-user-unsubscribe@jakarta.apache.org> For additional commands, e-mail: < mailto:tomcat-user-help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: