Depending on your usage, you might be able to put a whitespace-stripping
filter in front of your JSP pages, to collapse all this down.

Alternatively, you could adopt the funky JSP coding style I've seen some
people use, ensuring that you don't have whitespace between your tags.

So instead of this:

<tl:one a="a"/>
<tl:two b="b"/>

you would do this:

<tl:one
  a="a"/><tl:two
  b="b"/>

The first example causes the line break between the tags to be output into
your page, which is where a lot of your "\r"s are coming from. The second
example ensures that there is no whitespace between the tags.

The obvious downside to this is the substantial decrease in readability...

--
Martin Cooper


> -----Original Message-----
> From: Lorenzo Sicilia [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 09, 2004 3:28 AM
> To: Tag Libraries Users List
> Subject: jstl output
>
>
> Hi to the list,
>
> I have a jsp with jstl. The goal is generate a 100% xml ouput.
> In Macromedia flash I get this output from jstl:
>
>
> \r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\t\r\r
> \r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\t\t
> \r\r\t\t\t\t
> \r\r\t\t\t\r\r\r\r\r\r\r\r\r\r\r\r\r\r\t\r\r\t\r\r\t\r\r\t\r\r\t\t
> \r\r\t\t\r\r\t\t\r\r\t\t\t\r\r\t\t\t\t\r\r\t\t\t\t\r\r\t\t\t\t\r\r
> \t\t\t\r\r\t\t\t\t\r\r\t\t\t\t\r\r\t\t\t\t\r\r\t\t\t\t\r\r\t\t\t\t
> \r\r\t\t\t\t\r\r\t\t\t\t\t\r\r\t\t\t\t\t\t\r\r\t\t\t\t\t\t\r\r\t\t
> \t\t\t\t\r\r\t\t\t\t\t
>
> \r\r\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\r\r\t\t\t\t
> \t\t\t\r\r\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\r\r\t\t
> \t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\t
> \r\r\t\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\t\r\r\t
> \t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\t\r\r\t\t\t\t
> \t\t\t\t\r\r\t\t\t\t\t\t\t\r\r\t\t\t\t\t\t\t\r\r\t\t\t\t\t\r\r\t\t
> \t\t\t\r\r\t\t\t\t\t\t\t\t\t\t\r\r\t\t\t\r\r\t\t\t\r\r\t\t\r\r\t\r
> \r\t\r\r\t\r\r\t\r\r\t\r\r\t\t\t\r\r\t\r\r\t\r\r\r\r\r\r\r\r\r\r<packet
> type=\"1\"><params /><responses><response name=\"ticket\" code=\"\"
> value=\"0.5415515086218432\" /><response name=\"session\" code=\"\"
> value=\"true\" /></responses><data>.....</data></packet>\r
>
>
> Does it is possible remove newline chars in jstl?
>
> Thanks in advance
>
> regards Lorenzo
>
>
> ---------------------------------------------------------------------
> 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