This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?

subject: Struts TextArea
Similar Threads
Struts2 variable inside javascript
Struts 2.1 error message breaks page html formatting
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).