Hunter Hillegas <[EMAIL PROTECTED]> wrote:
>I have a database type of TEXT that I get using rs.getString(). I then send
>that to the client... The problem is that the text comes as one long line
>and I can't get it to wrap on the browser... Any ideas on how to wrap a
long
>string correctly?
>
>Instead of this:
>Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test
>
>I want this:
>Test Test Test Test Test Test Test Test Test Test
>Test Test Test Test Test Test Test Test Test Test
>
>This is inside a table cell that expands to fit the long string of text...
>Very annoying...
Where do you want the cell to wrap? After a certain number of characters or
words? After a certain number of pixels?
If the former, add "<br>" tags in the text before you send it to the
browser. The line will break wherever the "<br>" tags are. If the latter,
specify the column width in the td tag (e.g., "<td width=200>") or the table
tag ("<table width=500>").
Erik
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html