How to make JSP documents(jspx) to preserve the formatting of the final HTML?

JSP documents(those with XML syntax and an extension .jspx) when generating the resulting HTML and remove all formatting. All html markup in the string just written.

How to configure so that the jspx documents retain formatting like simple JSP pages?
October 14th 19 at 11:33
2 answers
October 14th 19 at 11:35
Apply the above xslt on the resulting CML, which will be nicely formatted ;-)
Well, no, it's not serious! =)) - jamey_Purdy commented on October 14th 19 at 11:38
His obfuscation of the box, and he complains! - Greyson.Schmitt commented on October 14th 19 at 11:41
No, if it was possible to turn on and off, it does not matter! But the fact of the matter is that to get rid of this still does not work. Have izgolyatsya... - jamey_Purdy commented on October 14th 19 at 11:44
October 14th 19 at 11:37
Seriously, put in CDATA or not to use the jspx:

In fact, the problem at this level normally is not solved. If simply inconvenient to debug, then look through firebug and similar things (by the way, as far as I remember, someone from browsers, like Opera, formats itself before displaying source). If the spaces required by the layout to impose that are not required or insert a nbsp.

A little studied this question and came to the conclusion that the person to write the jspx is not much use, more convenient jsp (nbsp, conditional comments for IE, javascript, and less than, to preserve the formatting and problemow, ...). Only for generating and updating tools convenient because they can work with the xml tree.
The advantages of jspx usually related to the fact that the jsp is resolved using the instructions for coding style and code review. - jamey_Purdy commented on October 14th 19 at 11:40

Find more questions by tags JavaJSP