problem with textarea on jsp page

hello,

I am using struts frame work. i am getting problem to set text in textarea on jsp page. i have a string object which have some new lines. when i print this object it display new lines but when i set it on jsp page in textarea there is no "new lines". while i have embade new lines as

String letter ="Hello jams"+"\r\n\n"+"tnaks to contect me"+"\r\n"+"Bye";

I set it in textarea as

<html:textarea property="mailtext" style="width:570; height:150" />

In the struts action. i set it in bean.

But there is no "new lines" displayed in the textarea.

Please help me. i need it very soon.

Thanks

[655 byte] By [raviadhaa] at [2007-11-26 19:17:09]
# 1
You can use "" instead of \n this will resolve your problem .CheersVarun Rathore
Varun_Rathorea at 2007-7-9 21:31:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...