Thanks for your hint.

Essentially I want nest:write and bean:write to smart enough to
convert "ab
c" to "ab\nc" byitself.

nest:write is already be able to convert < to &lt; if you set filter=true.
I am trying to find something similar to convert real return to \n.
I am hoping the convertion list is configurable somewhere.

Lei

-----Original Message-----
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 1:16 PM
To: Struts Users Mailing List
Subject: Re: how to replace return in a string while use nested:write
and bean:write


alert("this message\nwill appear on two lines");

Does that help?

Erik

Shen, Lei wrote:

>Hello, all:
>
>
>I have some code like this:
><script>
>       data = use bean:write or nested:write here
>       alert(data);
></script>
>
>
>The problem is that javascript does not allow:
>
>       data ="ab
>               c";
>
>How to replace return in a string while use nested:write and bean:write 
>automatically?
>
>Thanks
>Lei
>
>---------------------------------------------------------------------
>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