struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitch...@apache.org>
Subject RE: unwanted emty lines in produced html
Date Wed, 12 Mar 2003 15:34:45 GMT
I have gotten around this by reworking my jsp tags and taglibs

<some html here>
<%  some script here %>
<more html here>

(with that, there are 3 line breaks, more for iteration)

Becomes

<some html here
><%  some script here 
%><more html here>

(this will only have 1 line break, at the end of the last tag)


I guess you could also use a filter to catch and format/filter out
unwanted characters.

Good Luck!!


--
James Mitchell
Software Developer/Struts Evangelist
http://struts.sourceforge.net/struts-atlanta/



> -----Original Message-----
> From: Igor Lyubimov [mailto:igor.lyubimov@knipp.de] 
> Sent: Wednesday, March 12, 2003 10:17 AM
> To: struts-user@jakarta.apache.org
> Subject: unwanted emty lines in produced html
> 
> 
> 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
>       Igor.Lyubimov@knipp.de             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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


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


Mime
View raw message