tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kito D. Mann" <km...@virtua.com>
Subject Re: Tomcat, getRequestURI(), and URL fragments
Date Mon, 01 Aug 2005 16:37:14 GMT
At 01:02 PM 7/30/2005, you wrote:
>The web browser never sends (or shouldn't send) #blah so the webserver 
>will never see it.
>
>-Tim

Ah. That's kind of what I was thinking. For some reason, some browsers do 
actually send it, so I was getting a little confused. Thanks.


>Kito D. Mann wrote:
>
>>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?
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kito D. Mann
Author, JavaServer Faces in Action
http://www.JSFCentral.com - JSF FAQ, news, and info

Are you using JSF in a project? Send your story to trenches@jsfcentral.com, 
and you could get your story published and win a free copy of JavaServer 
Faces in Action!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message