Thanks Jason, that is more like what I was looking for.
From: Jason Lea <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: carriage returns
Date: Wed, 15 Jun 2005 10:17:12 +1200
You can get Tomcat-5's JSP compiler to remove some whitespace
in conf/web.xml you can set trimSpaces to true. It will remove whitespace
between tags.
eg <logic:iterate ...>
<bean:write .../>
</logic:iterate>
Would be reduced to
<logic:iterate ...><bean:write .../></logic:iterate>
but
<logic:iterate ...>
<bean:write .../>abc
def
</logic:iterate>
would be
<logic:iterate ...><bean:write .../>abc
def</logic:iterate>
draegoon Z wrote:
Hey guys,
I'm finally sick of all the unwanted carriage returns created by tiles and
struts tags.
I searched the archives and found this trick:
<logic:iterate
<tr><td><bean:write /></td></tr
</logic:iterate>
but it doesn't fix everything, especially comments.
Has anyone else gotten sick of this and came up with a quick and clean
solution?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jason Lea
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]