Sourabh Chandan wrote:

Hi,

Anyone has idea about how can be wrapped the text when we use <bean:write
name="..." property="....">
.. I tried to use wrap attribute of text area. But it doesn't work because I
am using struts <html:textarea/>

It can be done if there is an attribute to break lines.

It works if i enter data and press enter key after 40 characters.

bean:write just outputs the text value of the property you name. It's up to the browser how/if that text gets wrapped, according to the surrounding HTML.

It *sounds* like you are using bean:write to provide the body (content) of a text area HTML input, via a surrounding html:textarea. Look at the resulting HTML and determine how it needs to change to achieve the in-browser rendering you want, then figure out how to get Struts and/or your app to produce that markup.

In this case, it sounds like you may need to pre-process the value you are writing to include literal line breaks at suitable intervals, but without seeing your code or data it's hard to say.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to