Forums Register Login

Display problem

+Pie Number of slices to send: Send

Hi folks,
I am doing a project in servlets where in i am coming across some problems.
I am trying to read the text from a database which has to be displayed on the screen using servlet. I don't know how to store all the details of paragraph, tabs, carriage feeds what the user types in a input form which will be stored in the d/b and from the d/b it is read and displayed.
This is exactly same as how i am typing here ( ie., posting question in javaranch). All the paragraphs and line breaks what i am typing here is reflected correctly on the final display of my question. But in my case it is just appending
For instance,
This is vinay
-Bye
This should be reflected as it is in the final display. The
tags should be included for every new line.
But in my case it is displayed as
This is vinay -Bye

could anyone help me
Bye
Vinay
+Pie Number of slices to send: Send
put your paragraph in < pre > data from database < /pre > tags.
This will prevent browser from formatting data and showit as it is.
But this will not apply PAGE fonts to this data.
To use your fonts use style sheet classes.

[This message has been edited by rajesh dalvi (edited October 24, 2000).]
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 675 times.
Similar Threads
servlet display problem
whitespace
Capture Keycode combination
Line Feed Carriage Return problem
PDF Conversion
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:58:48.