Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to do "Back to Top" link in footer.jsp

 
David Wei
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In the jsp page where I have included header.jsp and footer.jsp, I am trying to add the link "Back to Top" in the footer.jsp. when I used the common code like:
<a href="#top">Back to top</a>
When I tested this jsp page in the browser, I found the link is changed to
<a href="footer.jsp#top">Back to top</a>
==> Can you give your suggestion? Thanks in advance.
David
 
Mark Stein
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's just html code outside a scriptlet that shouldn't happen. You don't by chance have a base ref set anywhere, do you?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic