views:

263

answers:

1

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.*

+3  A: 

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.)

Pascal Thivent
+1: that's the right place. Not the WEB-INF/web.xml of your webapp.
BalusC
I don't think this is using Tomcat I dont have the CATALINA_HOME var set anywhere.
codeninja
JBoss **is** using Tomcat.
Pascal Thivent
ok let me see if this works =] ty!
codeninja