Search code examples
jspjstljsp-tagsfragment-identifierjspx

How to retrieve URL fragment identifier in JSP


Is there an easy way to get the URL fragment identifier (everything after the hash '#') in JSP? I've tried just finding even the URL itself which includes the fragment identifier with ${pageContext.request.queryString} and other similar pageContext.request methods without success.


Solution

  • I've realized fragment identifiers are never sent to the server! That's why I can't seem to find them in JSP methods...