wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

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

David Wei
Greenhorn

Joined: Jan 04, 2002
Posts: 17
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

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?
 
Consider Paul's rocket mass heater.
 
subject: How to do "Back to Top" link in footer.jsp
 
Similar Threads
Tiles in struts?
custom link tags
"pageContext.include"
jsp:include and c:import combination/nesting
Internal page Link in a JSP going back to server