A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
URL problem with Hash symbol
Esther Kak
Ranch Hand
Joined: Oct 11, 2006
Posts: 51
posted
Feb 05, 2008 10:01:00
0
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
String testURL = "http://www.abcXXXX.com/privacy.jsp"+URLEncoder.encode("#aaa");
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: 56229
13
I like...
posted
Feb 05, 2008 10:32:00
0
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.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: URL problem with Hash symbol
Similar Threads
Hash symbol # problem in URL
Connection Reset Error while deploying wsdl file on Server
Struts: No getter method for property name of bean :advise for beginners
Lists
Switch case with Display Tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter