• 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

JSP Compilation -> HTML output

 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic