users@glassfish.java.net

Re: HTML output is a single line

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 27 May 2009 11:49:16 -0400

Salut,

Jeanfrancois Arcand wrote:
> Salut,
>
> glassfish_at_javadesktop.org wrote:
>> Does anyone know how to change this so that my HTML output is
>> formatted similarly to how it is in the JSPs?
>
> the easiest way would be to write a Filter which remove the \n. Then you
> can map your filter to "/*". That should works :-)

Hit the send to fast :-)

With a Filter, wrap the HttpServletResponse. When getWriter or
getOuputStream gets called, wrap the PrintWriter/OutputStream with your
implementation that inspect the written content and remove the \n.

A+

-- Jeanfrancois


>
> A+
>
> -- Jeanfrancois
>
>
>>
>> Thanks
>> [Message sent by forum member 'tenmiles' (tenmiles)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=347880
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>