• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieve the text into textarea

 
chiu pong
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have one question. I retrieve the text into the textarea by:
<% String text = rs.getString("Description").trim(); %>
<textarea rows="4" cols="40" name="Description">
<%= text %>
</textarea>
However, the text is appeared in the middle of the textarea, not the beginning. How can i format the text in the textarea after retrieved from database?
Thx,
ypc
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65528
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the HTML being sent to the broser look like? Are there a bunch of blank lines in the textarea? This would be the first thing I would look at.
hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!