• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic