tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kito D. Mann" <km...@virtua.com>
Subject Tomcat, getRequestURI(), and URL fragments
Date Sat, 30 Jul 2005 02:37:53 GMT
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.manning.com/mann/index.html)
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info

"Existence doesn't necessarily mean living..."  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message