Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating a TOC

 
Garrett Smith
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made a TOC in jsp. The TOC, toc.jsp, is included in each page. I'm wondering how I should improve this. One obvious problem is using println for HTML.
Here is the code:
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oy, don't put all of that Java code in your JSP -- split it out into one or more separate class files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!