Hi Chris,
Thanks for the script but my problem is that the user can enter a line up 500 characters without any �\n� until the very end. If my user enters something like the following I can display it back with all spaces preserved exactly as it appears without any problem as long as I enclose the text within <pre></pre> tags.
But in case of a long unbroken block of text like the following <pre></pre> make the text appear as one long line.
The J2EE platform provides two types of server-side components for generating dynamic content: servlets and JavaServer PagesTM (JSPTM pages). Servlets are Java classes that generate dynamic content by writing it directly to an output stream. JSP pages are structured static content (such as HTML or XML) interspersed with either Java code ("scriptlets") or custom tags that produce dynamic content. JSP pages and servlets are mapped to URLs in a Web server's name space. The servlet or JSP page produces dynamic content in response to a client making a request to its URL.
Also this problem shows up not on the original textarea but after I save what the user enters and try to display it again in a table column.
[ June 17, 2003: Message edited by: Sam Walker ]
[ June 17, 2003: Message edited by: Sam Walker ]