This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Does anybody know about using # in URLs?" Watch "Does anybody know about using # in URLs?" New topic
Author

Does anybody know about using # in URLs?

Vinod suryawanshi
Ranch Hand

Joined: Aug 08, 2012
Posts: 50
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,
msg=msg
msgresp=msgresp

but when i use URL,

i get output,
msg=
msgresp=null

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

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
Greenhorn

Joined: Feb 12, 2012
Posts: 12
http://stackoverflow.com/questions/979975/how-to-get-the-value-from-url-parameter
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?