How to make jsp documents (jspx) keep formatting final html?

Asked byj l jusaitis

JSP documents (those with XML syntax and .jspx extension) delete all formatting when generating the resulting HTML. All html markup is simply written to a string.

How to set up so that jspx documents retain their formatting like simple JSP pages?

Answers

singh4manindra
Lay on top of the resulting xslt hml, which will format nicely ;-)
Replies:
No, well, this is not serious! =)) - ben hughes
Obfuscation to him from the box, and he complains! - gail aftergood
No, if it could be turned on and off, then no question! But the fact of the matter is that to get rid of it so far did not work. You have to get lost ... - islefaye
avigail
But seriously, put in CDATA or not use jspx:
<![CDATA[&nbsp;]]>


In fact, the problem at this level is not normally solved. If it's just inconvenient for debugging, then look through firebug and similar things (by the way, as far as I remember, someone from the browsers, like Opera, formats itself before displaying the source code). If spaces require layout, then typeset so that it does not require or insert nbsp.

I studied this question a little and came to the conclusion that a person does not have much sense to write jspx, it is more convenient to jsp (nbsp, conditional comments for IE, javascript and less sign, preserving formatting and spaces, ...). Only for generating and updating utilities is convenient, since they can work with the xml tree.
Replies:
The advantages of jspx are usually attributed to the fact that jsp is solved through the coding style instruction and code review. - richard bowden
Explain the nuance of class inheritance in Python? :: How to add a file type to the list supported by the mime_content_type function? :: Online service for tenants? :: Ripples on the LCD monitor during & quot; heavy & quot; games :: 3G USB modem - direct ip address
Leave Repply forHow to make jsp documents (jspx) keep formatting final html?
Useful Links