Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 25968 invoked from network); 22 Jan 2003 20:07:31 -0000 Received: from exchange.sun.com (192.18.33.10) by 208.185.179.12.available.above.net with SMTP; 22 Jan 2003 20:07:31 -0000 Received: (qmail 1534 invoked by uid 97); 22 Jan 2003 20:08:53 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@jakarta.apache.org Received: (qmail 1492 invoked by uid 97); 22 Jan 2003 20:08:52 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 1480 invoked by uid 98); 22 Jan 2003 20:08:52 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Wed, 22 Jan 2003 12:07:21 -0800 (PST) From: Martin Cooper To: Tag Libraries Users List Subject: Re: Whitespace generated by JSTL tags In-Reply-To: Message-ID: <20030122120636.F34852-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N On Wed, 22 Jan 2003 matsuhashi@quick.co.jp wrote: > > Hi, > > Corby Jacobs wrote: > >1) whitespace the developer added to make the JSP more readable seems to > be repeated in the HTML sent to the client (and duplicated >if it's inside > a tag) > ... > >My question is this: Is there any way to avoid all this whitespace caused > by core JSTL tags? > > I recently noticed that the Ant 1.5 added "ReplaceRegExp" optional task. > > My idea is (... haven't tried yet but will do soon) to filter the manually > written JSP files by ReplaceRegExp task with the match="^\s*" replace="" > attributes. This will chomp off the leading " " and "\t" chars in each > lines for readablity, leaving newlines there. You can do this filtering > when you replicate JSPs from the src dir to the build dir to create a .war > file for deployment. > > I suppose this very low-tech (therefore, safe) code de-cosmetics will have > noticeable effect for decreasing the size of the JSP response. It will also have a noticeable - and undesirable - effect on any
sections in the JSP page, causing them to be rendered incorrectly.

--
Martin Cooper


>
>
>      MATSUHASHI,kazuaki
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: