I am trying to find a simple solution to compress html removing white spaces created after parsing cerfs> jsf> jsp> servlets.
I found out that with the help of compression js and css can do nothing with HTML, because jsf in jsp happens after parsing partitions.
JSP specifications have a directive
<%@ page trimDirectiveWhitespaces="true" %>
do what i need.
In addition, we could process it in web.xml, if necessary.
I know the right way is to configure the web server to handle it.
However, jBoss 7.1.1 has lost sensitivity to the JSP configuration. (The problem started in 7.0, when we had to restart the server after each JSP change. It was fixed and returned to 7.1. Suppose that it was fixed in 7.2, but 7.2 has not yet been released.)
In any case, jBoss is a great tool.
My question is that we are losing functionality from JSP to JSF.
It needs to be some kind of tag saying JSF to put trimDirectiveWhitespaces in the JSP that it is trying to parse.
I donβt like the βfilterβ solution, because it will clip the output every time we unload it. Rather, I compiled it in JSP> Sevlet vs. do it every time you exit. In addition, it is custom-made (not standard, not documented, etc.).
I would also like to know a simple way to "crop white spaces", "compress html" ... in JSF.