If you are really anal ;) about line breaks, etc. you could use the regular
expression tablib to get rid of them by wrapping each JSP. Im sure there is
a performance hit with this but it saves you from having to change every
line of source in the JSPs. 

Shane

-----Original Message-----
From: Brian Lee [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 10:41 AM
To: [EMAIL PROTECTED]
Subject: Re: unwanted emty lines in produced html


Hundreds of blank lines affect rendering speed of a browser and can affect 
performance of heavily hit sites. Although each line is negligible with 
thousands of users you end up paying for the extra bandwidth.

Plus browsers still have some quirks with blank lines. I.e. it can make an 
image look misaligned or cause a link's underline to extend beyong the text.

BAL

>From: "David Graham" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: unwanted emty lines in produced html
>Date: Wed, 12 Mar 2003 08:24:57 -0700
>
>How are empty lines affecting the display of the html?  AFAIK, browsers 
>ignore blank lines.
>
>David
>
>
>
>>From: Igor Lyubimov <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: unwanted emty lines in produced html
>>Date: Wed, 12 Mar 2003 16:17:07 +0100
>>
>>Hallo!
>>
>>I use struts-tiles framework for my web application.
>>
>>When I look in produced html code, I see wery much empty lines. In this 
>>case I become broken design. (Some divs have incorrect size, table cells 
>>are broken etc.)
>>
>>As I understand this problem, this emty lines are produced by embedded 
>>java statements and struts/tiles tags like:
>>
>><% ... %>
>><%@ ... %>
>>...
>><tiles:useAttribute ... />
>>
>>So, how can I control the output? I need to be able to use in my code 
>>constructions (as stated above) and I do not like to have one emty line 
>>per construction. I do not like to have very long lines in my code too.
>>
>>Have anybody solution for this problem?
>>
>>Thanks a lot,
>>
>>--
>>_____________________________________________________________________
>>      |       |
>>      | knipp |                   Knipp  Medien und Kommunikation GmbH
>>       -------                           Technologiepark
>>                                         Martin-Schmeisser-Weg 9
>>                                         D-44227 Dortmund
>>      Dipl.-Mathematiker Igor Lyubimov   Fon: +49-231-9703-0
>>      [EMAIL PROTECTED]             Fax: +49-231-9703-200
>>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>
>>   C e B I T  2003                   Besuchen Sie uns
>>   H a n n o v e r                   auf unserem Stand:
>>   12.3.-19.3.2003                   Halle 6, C 52/560
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>_________________________________________________________________
>Protect your PC - get McAfee.com VirusScan Online  
>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to