Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to wrap text retrieved from a column in db into a textarea in jsp  RSS feed

Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am facing a problem while retrieving a message from database and showing it in the text area. If the message does nt have any spaces then it comes in a single line for the entire length which quite distorts the alignment of my jsp page. Any suggestions as how to read texts from db and wrap them in the jsp? I have used nowrap="false".But it never worked out.

Also while testing the application I found that if I enter without any spaces in between them, and on clicking the submit button the page does nt get submitted but it aligns itself horizontally for the entire length of the message, and only on clicking again it gets submitted.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!