wood burning stoves
The moose likes JSP and the fly likes Does anybody know about using # in URLs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Does anybody know about using # in URLs?" Watch "Does anybody know about using # in URLs?" New topic

Does anybody know about using # in URLs?

Vinod suryawanshi
Ranch Hand

Joined: Aug 08, 2012
Posts: 51
Hi friends,
one of our client wants to send us some parameters via url. So they directly hit one of our site page, which we are making only for them. So when they hit url we have to capture parameter they are passing and save them to database. Its all sound easy. but problem is that, they are hitting our site with following URL,

Here i am not understanding why they taking '# symbol'. I try to do same program of parameter passing by url but not getting value for passed parameter.
When i remove that '#'Symbol and passed value via url, at that time i get values of parameter passed in url.

for example,
when URL is,

i get values are,

but when i use URL,

i get output,

code i use to fetch values from url is bellow,

So please anybody have any idea about this kind of url please gave me response.
RatiKanta pal
Ranch Hand

Joined: Nov 13, 2011
Posts: 83

the #anchor is not part of the URL, but it is a component of the URI

Check the forum discussion at: link 1 Link 2
Girdher Singh

Joined: Feb 12, 2012
Posts: 12
You can go with this URL for your problem
I agree. Here's the link: http://aspose.com/file-tools
subject: Does anybody know about using # in URLs?
It's not a secret anymore!