Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 77764 invoked from network); 30 Jul 2005 02:31:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jul 2005 02:31:15 -0000 Received: (qmail 59690 invoked by uid 500); 30 Jul 2005 02:30:21 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 59040 invoked by uid 500); 30 Jul 2005 02:30:18 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 59017 invoked by uid 99); 30 Jul 2005 02:30:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2005 19:30:18 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=DNS_FROM_RFC_BOGUSMX,FORGED_RCVD_HELO,HTML_20_30,HTML_MESSAGE,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.59.195.20] (HELO pyramid-01.kattare.com) (69.59.195.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2005 19:30:04 -0700 Received: from SYNAPSE.virtua.com (adsl-64-252-23-208.adsl.snet.net [64.252.23.208]) (authenticated bits=0) by pyramid-01.kattare.com (8.12.11/8.12.11) with ESMTP id j6U2U9v5013984 for ; Fri, 29 Jul 2005 19:30:10 -0700 Message-Id: <6.2.1.2.2.20050729223313.0516a3c0@mail.kattare.com> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Fri, 29 Jul 2005 22:37:53 -0400 To: tomcat-user@jakarta.apache.org From: "Kito D. Mann" Subject: Tomcat, getRequestURI(), and URL fragments Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_104352320==.ALT" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=====================_104352320==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed I've noticed an interest consequence of getRequestURI() with Tomcat -- getRequestURI() doesn't return the URL fragment (the part after the "#"). So, if the URL is http://www.foo.com/page.html#blah, getRequestURI() only returns "/page.html", as opposed to "/page.html#blah". Apache, however, knows the full URL (which is recorded in the logs). Can anyone tell me if this is normal behavior, and if there's a way to retrieve the URL fragment? Environment: Linux, Tomcat 5.0.28, Apache w/mod_jk. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kito D. Mann (kmann@virtua.com) Virtua, Inc. Author, JavaServer Faces in Action (http://www.manning.com/mann/index.html) http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info "Existence doesn't necessarily mean living..." --=====================_104352320==.ALT--