• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

read named anchor

 
Annekee Dufour
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application receives requests which end in an anchor, eg:
http://hostname/servletname/pathinfoStuff/?anchor=weet+ik+niet&title=Klantprofiel&_SofiNr=123456782&frame=unknown#IBInkijkGSD-id4
The anchor would be '#IBInkijkGSD-id4'.
How can I read the value of this anchor from my ServletRequest? I tried request.getQueryString but that didn't work...
 
Tim Baker
Ranch Hand
Posts: 541
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why/how didnt it work? you should be able to get the whole thing like that easily enough.
 
Annekee Dufour
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the output of request.getQuerystring():
title=Uitkeringsintake+WW&_SofiNr=123456782&frame=content&anchor=IBInkijkGSD-id4
And this is what I get when I take a look at the properties of the subsequent page:
http://suwinet-inkijk-ontwikkeling.intern.bkwi.nl/suwinet-inkijk/rh/cwi/uitkeringsintake-ww/uitkeringsverhoudingen/?title=Uitkeringsintake+WW&_SofiNr=123456782&frame=content&anchor=IBInkijkGSD-id4#IBInkijkGSD-id4
I used an http sniffer, and did not see the '#IBInkijkGSD-id4' in the request. Could it be that the browser does not pass it on to the server? It is only needed by the browser, so that could be true.
 
Annekee Dufour
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic