Craig R. McClanahan wrote:

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.

I took it to mean that the text area is being used as a crude CMS type deal, or a web mail client, whatever. I've had to make heaps of the things over the years. Like anything, its all dependent on the app.

You are right though, "just rendering Html" & parsing strings is no-no.



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