• Post Reply Bookmark Topic Watch Topic
  • New Topic

Linking to different sections on a JSP page from another JSP page

 
Ashgo Singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have two JSP files: List,jsp and Report.jsp

List.jsp lists down report links and when any of those links is clicked, the user is navigated to Report.jsp.
Report.jsp contains a detailed report corresponding to each link.

All i want is that when I click a link on List.jsp, Report.jsp should automatically be scrolled to the section of the corresponding report in the Report.jsp page.(I do not want Report.jsp to be shown from the top)


I know it is possible for HTMLs using <a name="section1"> for every section in target file and using #section1 in the URL to go the particular section. However it doesnt seem to work for JSPs.

Please help!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashgo Singh wrote:However it doesnt seem to work for JSPs.

All a JSP does is to send HTML to the browser, so it's no different from any other HTML file. If something isn;t working, it's likely that you have a problem with the HTML.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!