aspose file tools*
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 Java 8 in Action this week in the Java 8 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to do "Back to Top" link in footer.jsp
 
Similar Threads
custom link tags
Tiles in struts?
Internal page Link in a JSP going back to server
"pageContext.include"
jsp:include and c:import combination/nesting