Re: save control characters in a session object
From: Andreas Bauer (buki_at_gmx.net)
Date: 02/23/04
- Next message: ak: "Re: drawImage(Image, x, y, ImageObserver) in a server-side app (not Swing/AWT)"
- Previous message: GaryM: "Re: JAVAMAIL - IMAP Connection Failure: "* BYE disconnecting""
- In reply to: Collin VanDyck: "Re: save control characters in a session object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 23 Feb 2004 21:10:47 +0100
> Then the HTML page this produces will not care about any newlines in your
> strings. One way to get around the newline problem would be to, when you
> are displaying the strings, replace all "\n" characters with "<br/>".
> This will create the newlines for you in HTML.
>
> A better solution might be to wrap your formatted text with <pre>...</pre>
> tags. This attempts to preserve formatting as much as possible when
> displayed in the browser.
>
Ok, you're right. Thanks for the hint. I will try this.
- Next message: ak: "Re: drawImage(Image, x, y, ImageObserver) in a server-side app (not Swing/AWT)"
- Previous message: GaryM: "Re: JAVAMAIL - IMAP Connection Failure: "* BYE disconnecting""
- In reply to: Collin VanDyck: "Re: save control characters in a session object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|