This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 15959
    
  19

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: 1846
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to open the RTF format data in Netscape and IE
 
Similar Threads
Save excel file by hitting a url
IE and NN Compability
javascript error
The IE and Netscape conflict again!! :-)
Displaying RTF data in IE as well as in Netscape