You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pranay Parsatwar <pr...@mphasis.com> on 2004/02/25 15:04:17 UTC

Suppresing the generation of blank lines while using logic tags - Ver 1.0.2

 

Hello,

 

We are facing problem of jsp file size exceeding to more than 5 MB at
runtime. The jsp file is full of struts tag with lot many logic:equal,
notEqual in the code. The compiled html when generated takes a lot of
time for browser rendering because of the file size. Looking at the html
source generated it seems the tags generates lots of blank line were
ever used. If the source is modified to remove all the blank lines, the
size reduces to 2 mb.

 

I would appreciate any help on this issue.

 

Thanks in advance.

Regards
Pranay Parsatwar 
MphasiS India
2nd Floor,, The Leela Business Park
Andheri Kurla Road,
Andheri (East)
Mumbai - 400 059
Tel: (91)-22-56777777
 <http://www.mphasis.com/> http://www.mphasis.com/

 


Re: Suppresing the generation of blank lines while using logic tags - Ver 1.0.2

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
On 02/25/2004 03:04 PM Pranay Parsatwar wrote:
> We are facing problem of jsp file size exceeding to more than 5 MB at
> runtime. The jsp file is full of struts tag with lot many logic:equal,
> notEqual in the code. The compiled html when generated takes a lot of
> time for browser rendering because of the file size. Looking at the html
> source generated it seems the tags generates lots of blank line were
> ever used. If the source is modified to remove all the blank lines, the
> size reduces to 2 mb.

There is a Jasper servlet option which will remove the blank lines. 
Check for the trimSpaces attribute on the jasper servlet in the 
conf/web.xml config.

However it is still going to take processing time to remove the white 
space, so it might not be the enhancement you are hoping for.

Adam
-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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