Bug 14437 - <util:include> strips newlines
Summary: <util:include> strips newlines
Status: CLOSED WONTFIX
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Unknown Taglib (show other bugs)
Version: unspecified
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-11 04:50 UTC by Teo
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Teo 2002-11-11 04:50:50 UTC
Hello,

The include tag from jakarta util strips newline characters from the included
file, because it uses BufferedReader.readLine(). This makes it useless for 
plain text JSP pages. You should add 
            bodyContent.write("\n");
to the loop or something. This is not a very good solution, because newlines 
will differ under different OS, but it works for me.

Teo
Comment 1 Glenn Nielsen 2002-12-01 23:43:58 UTC
The utility tag library is deprecated. It was only a very early example of
how to write tag libraries.