(finally i have time to read this list :-)

Hi people,

There are many ways to get into similar problems (eg. when your source is in
a database or e-mail or ...).
Things like this may occur with other types of data also, when you have to
display monetary, date and other values for example.
So I think this is subject to formatting tools/tags, not Action, Servlet or
bean:write tag.
does this make sense ?




-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: Wednesday, October 23, 2002 2:14 PM
To: Struts Developers List
Subject: Re: HTML formatting of newline characters with bean:write tag




On Thu, 24 Oct 2002, Arron Bates wrote:

> Date: Thu, 24 Oct 2002 02:20:12 +1000
> From: Arron Bates <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: HTML formatting of newline characters with bean:write tag
>
> Craig R. McClanahan wrote:
>
> >Can't you just embed your <bean:write> tag inside a <pre> element and get
> >the same effect?
> >
> >Craig
> >
> pre opens a can of worms if the designers/managers are picky. For one,
> it roots the browsers ability to word wrap. Use a regex in your action
> code or some funky tag and replace them with <br /> 's before output.
> It's the only way to get a true representation.
>

The other side of the coin is that maintaining line breaks in any fashion
is *not* what people who are simply rendering HTML output want.  At best,
one could make this an option, but it's certainly never something I would
use.

> Arron.
>

Craig


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to