Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html:textarea wrap

Status
Not open for further replies.

cham911

MIS
Feb 17, 2003
2
BE
Hi there,

Using Struts,
I have a JSP wich dispays information in a table; part of it is just display (bean:write), part of it is input (html:textarea).
One of the input fields is intended to input a comment.
I specifically used a html:textarea for that one.

Here the proble.

when the user enters text and the text area was empty, the wrap apply.

When the form displays and an existing comment bigger than the col size is displayed, the wrappign doesn't apply ... the textarea displays the text on a single big row ... enlarging the table column and textarea.

I have read that struts doesn't implement the WRAP attribute available in pure HTML.

Since the data is displayed based on a someObject[], i used the indexed struts functionality.

Does anyone knows how to bypass the non Wrap struts attribute and still use the indexed funtionnality ?

Thanks for your help.

manipulating the string and adding CR/LF to 'hardcut' the text is not an acceptable solution at the moment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top