File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes How to do Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to do "Back to Top" link in footer.jsp" Watch "How to do "Back to Top" link in footer.jsp" New topic

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

David Wei

Joined: Jan 04, 2002
Posts: 17
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.
Mark Stein
Ranch Hand

Joined: May 20, 2002
Posts: 75
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?
I agree. Here's the link:
subject: How to do "Back to Top" link in footer.jsp
It's not a secret anymore!