aspose file tools*
The moose likes Servlets and the fly likes read named anchor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "read named anchor" Watch "read named anchor" New topic
Author

read named anchor

Annekee Dufour
Ranch Hand

Joined: Nov 04, 2003
Posts: 41
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

Joined: Oct 04, 2003
Posts: 541
why/how didnt it work? you should be able to get the whole thing like that easily enough.


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Annekee Dufour
Ranch Hand

Joined: Nov 04, 2003
Posts: 41
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

Joined: Nov 04, 2003
Posts: 41
anyone?
 
Don't get me started about those stupid light bulbs.
 
subject: read named anchor