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

How to open the RTF format data in Netscape and IE

kumaran
Greenhorn

Joined: Oct 02, 2001
Posts: 2
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 wroite the content to the Stream.
i also set the content type to text/rtf...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???
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
------------------
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

Try setting the content type to "application/msword" instead.


Customer surveys are for companies who didn't pay proper attention to begin with.
kumaran
Greenhorn

Joined: Oct 02, 2001
Posts: 2
Hi Tim
if i set the content type to application/msword...in Netscape it is asking for whether you want to Open it or Save it to disk.but i dont want this dialog box.
i want to know whether is it possible for me to open the page in the browser itself.[IE as well as in Netscape]
Thanks and Regards
Kumaran.S
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
kumaran
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open the RTF format data in Netscape and IE