Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 51911 invoked from network); 19 Jun 2002 07:35:04 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Jun 2002 07:35:04 -0000 Received: (qmail 23642 invoked by uid 97); 19 Jun 2002 07:35:01 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 23604 invoked by uid 97); 19 Jun 2002 07:35:00 -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 23592 invoked by uid 98); 19 Jun 2002 07:34:59 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Dennis van den Berg" To: "Tomcat Users List" Subject: RE: Way to remove index page file name from URL? Date: Wed, 19 Jun 2002 09:37:57 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, You can make it work by mapping your "default" servlet to "/" and make this one forward to your homepage using requestdispatcher. A disadvantage of this solution is that this overides the default mappings for your static image/js files etc. You can solve this by mapping each of these files to the default servlet provided by tomcat (which is named "default") which just serves files by using extension mapping. I don't know if there is a better solution but this works fine for me. Dennis. -----Original Message----- From: Chris Bailey [mailto:chris@codeintensity.com] Sent: woensdag 19 juni 2002 1:19 To: Tomcat Mailing List Subject: Way to remove index page file name from URL? I have a web app with a few servlets. One of these servlets I'd like to be the "default" servlet - basically it should handle any request that the other servlets don't handle, or that isn't for an image file or other resource. So far, I've set this up by mapping a special index/welcome page name to the servlet. i.e. with *.mypage, and then setting "index.mypage" as one of the welcome files. This works nicely, but the only problem is that on Tomcat (and maybe others), "index.mypage" now shows up in the URL. For example, if the original URL the user typed in was "http://www.foo.com/", their browser will now show "http://www.foo.com/index.mypage". Is there any way to have Tomcat not set the location to the URL with the index.mypage in it? I should note, this shall be the only webapp for this instance of Tomcat, so if I need to redo my context somehow to achieve this, that's fine. Currently the context looks like: I will need to be able to deploy it as both a WAR, and an expanded webapp/non-WAR (for development). ____ Chris Bailey mailto:chris@codeintensity.com Code Intensity http://www.codeintensity.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: