You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Nishna <Na...@iflexsolutions.com> on 2008/11/25 07:29:55 UTC
Display String in line by line in s:textarea
Hi All,
I am getting string from database. I want to display the string line
by line in my s:textarea.
I am tried with \n between each statement in my string. But, still,
it is getting displayed as
continuous text.
For example: I am having, String str="I like struts; I like webworks";
I want that string to be displayed as two lines in textarea.
Could anyone pls help me in this issue.
Thanks in advance...!!!
-Nishi.
--
View this message in context: http://www.nabble.com/Display-String-in-line-by-line--in-s%3Atextarea-tp20675825p20675825.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Display String in line by line in s:textarea
Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Please ask user questions on the Struts user mailing list. The dev
list is for the development of the Struts framework itself.
Nils-H
On Tue, Nov 25, 2008 at 7:29 AM, Nishna
<Na...@iflexsolutions.com> wrote:
>
> Hi All,
>
> I am getting string from database. I want to display the string line
> by line in my s:textarea.
>
> I am tried with \n between each statement in my string. But, still,
> it is getting displayed as
> continuous text.
>
> For example: I am having, String str="I like struts; I like webworks";
> I want that string to be displayed as two lines in textarea.
>
> Could anyone pls help me in this issue.
>
>
> Thanks in advance...!!!
>
> -Nishi.
> --
> View this message in context: http://www.nabble.com/Display-String-in-line-by-line--in-s%3Atextarea-tp20675825p20675825.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org