how to wrap text retrieved from a column in db into a textarea in jsp
Joined: Dec 23, 2004
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.