You cannot get the url fragment identifier from the HttpServletRequest
as its not actually passed along to the server, it is for the client only.
A quick Google for HttpServletRequest fragment identifier
should confirm that, including:
How to get the URL fragment identifier from HttpServletRequest
How to detect Fragment identifiers in Url Mappings?
etc