getting anchor tag from HttpServletRequest

There appears to be no way to get the anchor tag from the HttpServletRequest (see However, I know that data arrives at our servers because our apache logs show urls with the anchor tags.

So, apparently that information is just being dropped.

Is there any way to hack the system to allow me to see the anchor tag? For instance, is there a servlet engine that makes it available in some other way such that I could have a servlet filter that got the anchor using the alternate means and then put it into an attribute in the HttpServletRequest that I could use in my servlets?

Perhaps there is a way to install some sort of filter on port 80 that modifies incoming urls so that the anchor is turned into a parameter of the url so that I can access it using getParameter in the servlet?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If the browser is not sending it then there is no way for the server to get it.
HappyEngineerAuthor Commented:
The browser is definitely sending it. It's in our apache logs.
So have you tested the claims in the above post (which states it is *not* sent).
I never tried to get anchor tags (but I am a bit surprise that it does not work).
A work around could be to send request via javaSrcript that will replace  the URL #xxxx with ?anchor=xxxx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Are you sure this didn't work for you?
 StringBuffer urlBuffer = HttpUtils.getRequestURL(req);
     URL url = new URL(urlBuffer.toString());
     String anchor = url.getRef();
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.