This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does anybody know about using # in URLs?

 
Vinod suryawanshi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 84
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://stackoverflow.com/questions/979975/how-to-get-the-value-from-url-parameter
You can go with this URL for your problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic