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 Displaying RTF data in IE as well as in Netscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Displaying RTF data in IE as well as in Netscape" Watch "Displaying RTF data in IE as well as in Netscape" New topic
Author

Displaying RTF data in IE as well as in Netscape

Kumaran Sowrirajan
Ranch Hand

Joined: Oct 15, 2001
Posts: 36
Hi
our database contains RTF format data.i read the data using JDBC-ODBC driver through Servlets and i want to display it in the browser as RTF format.
so i read the data from the database and i changed the content-type to application/rtf then i wrote the content to the Stream.
i also set the content type to text/rtf and application/msword...sometimes if i installed the QuickViewPlus plugin it's working fine in Both Netscape as well as in IE.can anybody tell me without plugin can we do it in the browser???also i dont want the Save As dialog box......
without plugin it's not working for me.
This is my need...i want to display the data in RTF format in the browser which is compatible with Netscape as well as in IE.
anybody knows how to do this???
i appreciate ur help
Thanks & regards
Kumaran.S
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
The only markup the browsers know is HTML - you will have to convert the RTF to HTML, which is certainly possible.
Bill
Kumaran Sowrirajan
Ranch Hand

Joined: Oct 15, 2001
Posts: 36
Hi
Thanks for your information.
Can you tell me how to convert the RTF format data into HTML data.i want to know whether i have to go for 3rd party tool in order to convert the RTF data to HTML data or in which way i have to convert the RTF data to HTML data.
Thanks and Regards
Kumaran.S
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
RTF is supposedly a format with a published standard, so it is not surprising that a conversion library has been created. I found the following by searching at Google. It is from the comp.lang.java.softwaretools newsgroup dated Sept. 3
About ScroogeXS:
ScroogeXS for the Java(tm) platform is a bean which can convert a small
subset of the RTF code to HTML.
It can be used to...
- easily let users build and modify Internet pages without knowledge of HTML
- automatically migrate large text archives from RTF to HTML
- build rich-media content management systems
Feature list:
- well-formed output using CSS
- high conversion speed
- supports many RTF "dialects"
- royalty-free, includes full source code
- also available for Borland(tm) Delphi(tm)
A ScroogeXS demo application is available on the BetaSoft download page at http://www55.pair.com/betasoft/download.html.
This demo version can not be installed as a JavaBean, it contains only an
executable JAR with the RTF to HTML converter.
ScroogeXS for the Java(tm) platform will be ready for public release soon.
If you want to be notified about the release date, please send an e-mail to
scroogexs@betabeans.de.
Greetings,
Michael Justin
BetaBeans - Freeware and Shareware JavaBeans(tm) http://www.betabeans.de
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying RTF data in IE as well as in Netscape