Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts Users »

Re: Extra Lines in Compiled JSP

Adam Hardy

2004-02-21

Replies:

I think it's XHTML where the problem is. Check out this (resolved) bug
report:

http://issues.apache.org/bugzilla/show_bug.cgi?id=24506

I implemented the mentioned Jasper configuration option and lo! God
removed unnecessary blank lines from my XHTML! Made a shiver go down my
spine to look upon it in all its glory.

Adam

On 02/20/2004 10:47 PM Piper, James D CECOM SEC EPS wrote:
> Why do you have this problem with extra lines in your html generated by the
> <%@(protected) --
> never saw this problem?
>
> - Jim
>
>
> -----Original Message-----
> From: Adam Hardy [mailto:ahardy.struts@(protected)]
> Sent: Friday, February 20, 2004 3:42 PM
> To: Struts Users Mailing List
> Subject: Re: Extra Lines in Compiled JSP
>
>
> Perhaps it was in the taglibs-user mailing list where I dreamt it?
>
> Maybe I'm searching for the wrong key-words - I've looked for 'white
> space' and 'blank lines' but not found anything. Perhaps it was even on
> this list?
>
> Check this link for a filter solution:
>
> http://www.mail-archive.com/taglibs-user@(protected)
>
> On 02/20/2004 08:14 PM Gopalakrishnan, Jayesh wrote:
>
>>I am talking abt generated output(HTML/csv/email/whatever). If
>>the question was abt generated java code, nobody should care.
>>
>>The generated output contains newlines for every <% %> enclosure
>>in the JSP. And if you are generating anything other
>>than HTML output, thats likely to cause a problem.
>>
>>We did this for our export to exel feature...
>>
>>cheers
>>-jayash
>>
>>
>>
>>-----Original Message-----
>>From: Thad Humphries [mailto:thad@(protected)]
>>Sent: Friday, February 20, 2004 11:05 AM
>>To: Struts Users Mailing List
>>Subject: Re: Extra Lines in Compiled JSP
>>
>>
>>Why care about how generated code looks? This approach makes the code you
>
>
>>maintain harder to read.
>>
>>On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote:
>>
>>
>>>I must have had the same dream !!
>>>I remember that tomcat config thing......and not too
>>>long ago. I am surprised you couldn't find it.
>>>
>>>We had to do something like this though, for weblogic.
>>>
>>><%@(protected)"
>>>%><%@(protected)"
>>>%><%@(protected)"
>>>%><%@(protected)"
>>>%><%@(protected)"
>>>%><%@(protected)"
>>>%><%@(protected)"
>>>%><% your code continues.....%>
>>>...
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@(protected)
>>For additional commands, e-mail: struts-user-help@(protected)
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@(protected)
>>For additional commands, e-mail: struts-user-help@(protected)
>>
>>
>
>
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@(protected)
For additional commands, e-mail: struts-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.