Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieve the text into textarea  RSS feed

 
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: 65826
134
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!