Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP's and HTML anchors  RSS feed

 
Stephen Pride
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to set an anchor in a JSP? For example, if I have the following in my HTML (or JSP):

I always get the "/xyz.jsp" page, but it begins at the top of the page (and not at the 'chapter2' anchor). I am guessing that the anchor tags are interpreted by the browser and are not passed through to the JSP, and thus cannot be used in this fashion. If so, is there an alternative?
Thanks.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They always seem to work for me :
http://www.javaranch.com/newsletter/Apr2002/newsletterapr2002.jsp#giveaway
You may have another problem on your age. If there are two Anchors with the same name, it will not go to the correct point.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!