aspose file tools*
The moose likes JSP and the fly likes how to wrap text retrieved from a column in db into a textarea in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to wrap text retrieved from a column in db into a textarea in jsp" Watch "how to wrap text retrieved from a column in db into a textarea in jsp" New topic
Author

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

saran sadaiyappan
Ranch Hand

Joined: Dec 23, 2004
Posts: 39
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to wrap text retrieved from a column in db into a textarea in jsp