servlet display problem

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 displayed on the screen using servlet. I don't how to store all the details of paragraph, tabs, carriage feeds what the user types in a form which will be stored in the d/b. This is exactly same as how i am typing here. All the paragraphs what i am typing here is reflected correctly on the final display of my question. But in my case it is just appending could anyone help me Bye Vinay