I think U must write your own jsp tag to display and convert \n to <br/>


----- Original Message -----
From: "Turner Benjamin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 13, 2004 1:49 PM
Subject: RE: newlines


that requires me to set filter="false" in bean:write which i don't want to
do.

Ben

-----Original Message-----
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: 13 februari 2004 12:43
To: Struts Users Mailing List
Subject: RE: newlines


can you replace the \n to <br/> before sending to jsp

>-----Original Message-----
>From: Turner Benjamin [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 13, 2004 2:33 PM
>To: Struts-User (E-mail)
>Subject: newlines
>
>
>hello,
>
>i looked in the archives about this problem but couldn't find
>anything useable.
>
>i have text data which contains newlines (\n) which has been
>entered via textarea's. on a different page i wish to present this
>data with the newlines converted to <br/>'s. i however don't want
>to turn the filter="" option of bean:write off, since this would
>enable possible misformatting if the user were to enter html data.
>
>is there a clean solution to this? <pre> is also not an option
>since this makes for lines being endlessly long.
>
>tia,
>
>Ben
>
>---------------------------------------------------------------------
>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]


---------------------------------------------------------------------
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