Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8867275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:59:26+00:00 2026-06-14T16:59:26+00:00

How do I get the URL fragment identifier from HttpServletRequest ? The javadocs doesn’t

  • 0

How do I get the URL fragment identifier from HttpServletRequest?

The javadocs doesn’t seem to mention it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:59:27+00:00Added an answer on June 14, 2026 at 4:59 pm

    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 then pass this value as a GET or POST parameter in an AJAX request, and use the getParameter methods on the HttpServletRequest for the AJAX request.

    Here’s what RFC3986: Uniform Resource Identifier (URI): Generic Syntax has to say:

    The fragment identifier is separated
    from the rest of the URI prior to a dereference, and thus the
    identifying information within the fragment itself is dereferenced
    solely by the user agent, regardless of the URI scheme. Although
    this separate handling is often perceived to be a loss of
    information, particularly for accurate redirection of references as
    resources move over time, it also serves to prevent information
    providers from denying reference authors the right to refer to
    information within a resource selectively. Indirect referencing also
    provides additional flexibility and extensibility to systems that use
    URIs, as new media types are easier to define and deploy than new
    schemes of identification.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: It turns out that Twitter doesn't know single tweet ID from URL fragment
Is there an easy way to get the URL fragment identifier (everything after the
I want to get a url from a string. Heres my code to extract
How can I get the url of the active aspx page from the code
$(#ShowRating).html($.get(url)); This is not working, in fact firebug doesn't even show any headers... what
In ASP.net why is there an option to get the URL fragment (aka. Hash)
How can i get url parameter when open dialog ? Sample Text when dialog
Possible Duplicate: Get URL of ASP.Net Page in code-behind I'm trying to hold current
I am executing an AJAX request using jQuery as such: $.get({ url: 'run_program.php', data:
I have a variable () loaded with a html code: $.get(url, function (res, data)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.