wood burning stoves 2.0*
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 Spring in Action 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="http://www.abcXXXX.com/privacy.jsp#aaa"

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: 61426

    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] [Bear's FrontMan] [About Bear] [Books by Bear]
    jQuery in Action, 2nd edition
    subject: URL problem with Hash symbol