struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "draegoon Z" <draego...@hotmail.com>
Subject Re: carriage returns
Date Tue, 14 Jun 2005 22:47:53 GMT
Thanks Jason, that is more like what I was looking for.

>From: Jason Lea <jason@kumachan.net.nz>
>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: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>
>
>--
>Jason Lea
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message