Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 10265 invoked by uid 500); 23 Apr 2001 00:44:53 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 10257 invoked from network); 23 Apr 2001 00:44:52 -0000 Received: from pop.gmx.net (HELO mail.gmx.net) (194.221.183.20) by h31.sny.collab.net with SMTP; 23 Apr 2001 00:44:52 -0000 Received: (qmail 4705 invoked by uid 0); 23 Apr 2001 00:44:33 -0000 Received: from pd9503ba4.dip.t-dialin.net (HELO utumno) (217.80.59.164) by mail.gmx.net (mail06) with SMTP; 23 Apr 2001 00:44:33 -0000 Message-ID: <001b01c0cb8e$90cfb5a0$a43b50d9@utumno> From: "Matthias Hupp" To: Subject: Accessing HTML files in the apache root from servlets Date: Mon, 23 Apr 2001 02:44:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Greetings everyone, I am going mad over this: I have a servlet directory structure in my apache virtual host document root. Servlets can be reached by typing "www.../servlet/ServletName. I am trying to access a html file from that servlet as input data, it could be just any type of text file. Its name is passed to the servlet in the URL: www.../servlet/ServletName?search=inputfile.html. I would like to place that file somewhere in the apache document root, ideally in the same directory as the classes. But tomcat (or the JRE from the Sun JDK, not sure) looks for that file in the server system root if I do not specify the correct (system) path - /usr/local/... - in the URL. First, this path is very very long, and second, users shouldn't be bothered with the directory structure of my system (it is really ugly). BTW, the software versions of the tomcat engine and the JDK are, AFAIR, the latest respective releases. So, could anybody tell me how to tell tomcat (or the JRE) to consider the web-documents directory as their root? Any help is greatly appreciated. Thx in advance, Matthias