The moose likes HTML, CSS and JavaScript and the fly likes URL problem with Hash symbol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

URL problem with Hash symbol

Esther Kak
Ranch Hand

Joined: Oct 11, 2006
Posts: 51
I have a JSP page which has a ahref=""

Problem: When I click on the ahref, everything from # is stripped off in the URL
  • Try 1: Encoded # with %23 - did not work
  • Try 2: Used Java URL encoder class to encode

  • Try 1 & 2 are not working. Is there are way around to make this work.
    Bear Bibeault
    Author and ninkuma

    Joined: Jan 10, 2002
    Posts: 63534

    Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.

    [Asking smart questions] [About Bear] [Books by Bear]
    I agree. Here's the link:
    subject: URL problem with Hash symbol
    jQuery in Action, 3rd edition