File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
Encoding and decoding TextArea contents
crating a table using JSP
What happens when the length of the text exceed the limit of the column VARCHAR
Javascript event
Coding conventions