Displaying data problem

I have inserted a news in oracle db. its in the same format that I have posted. but the problem is, its displaying with no format. I used the <pre> tag but the page width becames a large and its displays each paragraph in each lineAny suggestion pleasethanks in advance
[296 byte] By [Javahlpa] at [2007-11-26 19:56:11]
# 1

> I have inserted a news in oracle db. its in the same

> format that I have posted. but the problem is, its

> displaying with no format. I used the <pre> tag but

> the page width becames a large and its displays each

> paragraph in each line

>

> Any suggestion please

>

> thanks in advance

My Sugestion is you can do encode/decode the news before insert to db or after read from db

p_epia at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
> My Sugestion is you can do encode/decode the news> before insert to db or after read from dbcould you be more specific please
Javahlpa at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
I mean1. before insert your news to db, you could convert that news with encode method .2. before you display your data, you can convert data from db wihdecode method http://ostermiller.org/utils/Base64.html
p_epia at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
the speed will not suffer in this case?
Javahlpa at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5
i think it wont significantly harm the perfs
alban.maillerea at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 6
> the speed will not suffer in this case?Let's suppose it was slower to fix the problem. Would you then accept the bad output because it came out faster?
DrClapa at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 7

> I mean

>

> 1. before insert your news to db, you could convert

> that news with encode method .

>

> 2. before you display your data, you can convert data

> from db wih

>decode method

> tp://ostermiller.org/utils/Base64.html

I tried Base64. it encodes but don't displays data in origional shape. it displays data like previous.

please get me any example

Javahlpa at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 8

Well, Base64 encoding was a really stupid idea to solve your formatting problem. It was unfortunate you got sucked in by it. So forget about that.

And your problem really has nothing to do with JDBC. It seems to be "I have some text and I want to format it nicely in HTML. How do I do that?" Is that a good description?

DrClapa at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 9

> Well, Base64 encoding was a really stupid idea to

> solve your formatting problem. It was unfortunate you

> got sucked in by it. So forget about that.

>

> And your problem really has nothing to do with JDBC.

> It seems to be "I have some text and I want to format

> it nicely in HTML. How do I do that?" Is that a good

> description?

Don't bother, he's not going to get it.

http://forum.java.sun.com/thread.jspa?threadID=5148690&tstart=0

http://forum.java.sun.com/thread.jspa?threadID=5147584&start=15&tstart=0

http://forum.java.sun.com/thread.jspa?threadID=5145781&messageID=9546073#9546073

And there is much more grist for the mill, but his history doesn't run long enough to find the thread I'm thinking of in this instance.

Edit: Okay, I found a few of them:

http://forum.java.sun.com/thread.jspa?forumID=48&threadID=787085

http://forum.java.sun.com/thread.jspa?forumID=48&threadID=774107

http://forum.java.sun.com/thread.jspa?forumID=48&threadID=774092

Edit Again: Sorry, didn't notice (from the Base64 thread) that you had already noticed this.

masijade.a at 2007-7-9 22:49:56 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...