How to get the URL fragment identifier from HttpServletRequest
问题 How do I get the URL fragment identifier from HttpServletRequest ? The javadocs doesn't seem to mention it. 回答1: You can't get the URL fragment in the way you'd like. Typically, the browser doesn't send the fragment to the server. This can be verified by using a network protocol analyser like tcpdump, Ethereal, Wireshark, Charles. However, you can send the fragment string as a GET/POST parameter on a JavaScript request. To get the value using JavaScript, use window.location.hash . You can