• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hide HTML code within Jsp

 
Carlo Smits
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any one know of an editor that can hide all HTML code in a JSP page to show only the included Java. With lots of mixed Java and HTML code one would have a better overview of the Java code. Thanx
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code editor tool I use doesn't quite have that functionality, but it displays html and java code in JSP in different colors (the colours are configurable).
You can easily see the logic (java code) distinguished from the presentation (html code).
Anway, its called CodeGuide from Omnicore (www.omnicore.com), I'm pretty sure they have a demo version you can download.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Taking this from another angle, something that you could consider using is JSP custom tags - a very effective way of wrapping up actions that can occur on the page into small, reusable components.
The benefits of this approach are that the JSP pages themselves become much more readable, while the functionality and code that they encapsulate becomes reusable and easily maintainable.
Sorry that didn't directly answer your question, but I hope that it helps!
Simon
 
Brian Glodde
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more suggestion would be to use server side includes for your HTML code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!