Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 11084 invoked from network); 10 Oct 2000 20:29:27 -0000 Received: from mercury.sun.com (192.9.25.1) by locus.apache.org with SMTP; 10 Oct 2000 20:29:27 -0000 Received: from amon.Central.Sun.COM ([129.147.4.240]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA05716 for ; Tue, 10 Oct 2000 13:29:27 -0700 (PDT) Received: from sunray11 (sunray11 [129.147.71.13]) by amon.Central.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with SMTP id OAA15201 for ; Tue, 10 Oct 2000 14:29:26 -0600 (MDT) Message-Id: <200010102029.OAA15201@amon.Central.Sun.COM> Date: Tue, 10 Oct 2000 14:29:26 -0600 (MDT) From: Arieh Markel Reply-To: Arieh Markel Subject: [tomcat_32] how to get Locale from Request To: tomcat-dev@jakarta.apache.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: w0MH+cX7IiCjyiJGnKJXJw== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I am working on enhancing the StaticInterceptor in the following manner: a. offer file-based localization lookup a request for /[path]/index.html will try to serve first /docRoot/[path]/index___.html /docRoot/[path]/index__.html /docRoot/[path]/index_.html /docRoot/[path]/index___.html /docRoot/[path]/index__.html /docRoot/[path]/index_.html /docRoot/[path]/index.html b. offer docRoot-based localization lookup a request for /[path]/index.html will try to serve first /docRoot/__/[path]/index.html /docRoot/_/[path]/index.html /docRoot//[path]/index.html /docRoot/__/[path]/index.html /docRoot/_/[path]/index.html /docRoot//[path]/index.html /docRoot/[path]/index.html I have the code to perform the lookups in place. What is missing to implement is access to the Locale from the Request on requestMap() and on doService(). How can I get from the HttpServletRequest from the Request object ? Thanks, Arieh -- Arieh Markel Sun Microsystems Inc. Network Storage 500 Eldorado Blvd. MS UBRM11-194 e-mail: arieh.markel@sun.COM Broomfield, CO 80021 Let's go Panthers !!!! Phone: (303) 272-8547 x78547 (e-mail me with subject SEND PUBLIC KEY to get public key)