Reputation: 11266
Getting lots of additional whitespace in the html output, looks like its because of the JSP tags =/
I saw this referenced somewhere:
<init-param>
<param-name>trimSpaces</param-name>
<param-value>true</param-value>
</init-param>
That should put it in web.xml
, I tried that but that didn't seem to work. Maybe I'm not putting it in the right node. Or maybe theres another way to do this.
Thanks
I dont have the CATALINA_HOME var set anywhere.
Upvotes: 3
Views: 4389
Reputation: 53
After some digging around, i found the procedure for JBoss AS 7. If anyone is interested: in your standalone.xml, find the section
<subsystem xmlns="urn:jboss:domain:web: ... >
And add this directive:
<configuration>
<jsp-configuration trim-spaces="true" />
</configuration>
Here are other attributes you may use
Upvotes: 5
Reputation: 570345
The mentioned <init-param>
should be added to the "jsp" servlet in $CATALINA_HOME/conf/web.xml
. Is this what you tried?
(EDIT: $CATALINA_HOME was just a way to designate the root of Tomcat and that the modification had to be done in Tomcat, not in the WEB-ING/web.xml
of your webapp. Anyhow, for JBoss which is embedding Tomcat, and depending on the version you are using, you'll find the mentioned file here: $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/conf/web.xml
. Here again, $JBOSS_HOME is the root of your JBoss installation, it may not be set as environment variable.)
Upvotes: 6