This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Get anchor information Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Get anchor information" Watch "Get anchor information" New topic
Author

Get anchor information

Ronnie Ho
Ranch Hand

Joined: Aug 10, 2005
Posts: 47
Hi all,

http://localhost:9080/appName/page?param1=true#123
From the above URL, I'd like to retrieve the anchor information (#123), but I cannot find it in the HttpServletRequest object, does anyone know how can I retrieve it? Thanks.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

There is no way to retrieve it because the browser doesn't send it.
This is only used on the client side.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: Get anchor information
 
Similar Threads
Web App Security
Default Server port assignments in WSAD
deploying application
Host an application
How to secure my page