File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Display problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Display problem" Watch "Display problem" New topic
Author

Display problem

Kumar Vinay
Greenhorn

Joined: Sep 29, 2000
Posts: 23

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
rajesh dalvi
Greenhorn

Joined: Oct 24, 2000
Posts: 7
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display problem