• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Compilation -> HTML output

 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have been wondering if there is anyway to 'tweak' the process of actual HTML generation when using JSP's / JSTL etc..

I've started to wonder about the readability of the resulting HTML when using JSTL tags and wished I could do something about it, maybe there is, I just dont know and was hoping this may have been discussed before..

E.g. When writing the jsp page and using JSTL tags, I like to insert Carriage Returns (CR's) after many of the tags to improve readability. However I would like to be able to not have these CR's carried through into the resulting HTML as it does often make a mess of the resulting HTML.

Rgds,

Dave.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No disrespect, but why on earth do you care about the formatting of the HTML?

Aside from people anal enough to do a View Source in the browser, who's going to see it?
 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I like to make sure what comes out is what I expect. If I could remove the extra carriage returns that get sent out, I could do that a little easier.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's just a spot check that you want, or to check the HTML when debugging, you don't need to do anything programmtic at all. Just do a View Source in the browser, and cut-and-paste the HTML into an IDE or other editor that has formattng capability.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic