Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

Displaying RTF data in IE as well as in Netscape

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic