aspose file tools*
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

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
    Marshal

    Joined: Jan 10, 2002
    Posts: 61199
        
      66

    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]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: URL problem with Hash symbol