Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 53231 invoked from network); 7 Aug 2003 07:48:10 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Aug 2003 07:48:10 -0000 Received: (qmail 7466 invoked by uid 97); 7 Aug 2003 07:50:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 7459 invoked from network); 7 Aug 2003 07:50:58 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 7 Aug 2003 07:50:58 -0000 Received: (qmail 51430 invoked by uid 500); 7 Aug 2003 07:47:46 -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 50704 invoked from network); 7 Aug 2003 07:47:30 -0000 Received: from madness.student.bth.se (HELO student.bth.se) (194.47.133.15) by daedalus.apache.org with SMTP; 7 Aug 2003 07:47:30 -0000 Received: from vroomfondel (vroomfondel.student.bth.se [194.47.133.110]) by student.bth.se (8.12.9/8.12.8) with ESMTP id h777kmol003341 for ; Thu, 7 Aug 2003 09:47:41 +0200 (MEST) Date: Thu, 7 Aug 2003 09:46:48 +0200 (MEST) From: Fredrik Jonson Sender: pt97fjo@vroomfondel.rby.hk-r.se To: tomcat-user@jakarta.apache.org Subject: Servlet mapping for root directory in a webapp? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, I'm trying to get tomcat (from sun's jwsdp1.2) to do a default mapping. Ie, in my webbapp /stuff/ I want to get a servlet to serve the root "page". As I understand it there is a default servlet that serves static content, I do not want to replace that one, but only load a specific servlet for the root url for my webapp. I (and a lot of other people, apparently =) have tried: MainView / as I found it on a lot of search results, but as I understand it that pattern is already "taken" by the default servlet. It doesn't work. I have had little succes searching google, and the documentation for solutions. Is it at all possible, or does everyone just use a dummy index.html in the root directory and forwards the users to the real content serving servlet? TIA -- Fredrik Jonson --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org