It's not a secret anymore!*
The moose likes Struts and the fly likes Struts TextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts TextArea" Watch "Struts TextArea" New topic

Struts TextArea

Meenatchi Sundar

Joined: Jan 31, 2011
Posts: 12
I have an problem with the TextArea.The issue is that my text area doesnt have vertical scroll bar when i give long piece of text.My senior instructed me to use rows and cols for it.i have given <td><s:textarea name="cli.comments" cols="50" rows="10"/></td>..It is coming vertically downwards.But width should be accoding to the dropdown above and height should be of 40 px again i given like this:
<td><s:textarea name="cli.comments" cssStyle="{width:200px;height:60px;border: 1px solid #cccccc}" cols="100" rows="5"/></td>.
They are saying that cssStyle overites the rows and cols mentioned.So its wrong...But i need to apply with rows and columns with the corresponding width:200px and height:60px...can anyone solve it?And also i need an explanation of rows and cols of textarea?

I agree. Here's the link:
subject: Struts TextArea
Similar Threads
Struts 2.1 error message breaks page html formatting
Struts2 variable inside javascript
Resizing HTML Table Columns
Client side validation not working
Problem positioning Data using CSS and <s:iterate ( information is placed on top of each other).