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


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/code-flow.club/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
2 views
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?
by | 2 views

2 Answers

0 like 0 dislike
Apply the above xslt on the resulting CML, which will be nicely formatted ;-)
by
0 like 0 dislike
Seriously, put in CDATA or not to use the jspx:
<![CDATA[ ]]>\r

\r
In fact, the problem at this level normally is not solved. If simply inconvenient for debugging, see using 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.
\r
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.
by

Related questions

0 like 0 dislike
1 answer
asked Jun 5, 2019 by Romanchitoz
0 like 0 dislike
2 answers
asked Apr 25, 2019 by danilochagov
0 like 0 dislike
1 answer
asked Apr 11, 2019 by Bender100
0 like 0 dislike
1 answer
0 like 0 dislike
5 answers
110,608 questions
257,186 answers
0 comments
22,669 users