*
The moose likes HTML, CSS and JavaScript and the fly likes Display Contents of File on Web Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Display Contents of File on Web Page" Watch "Display Contents of File on Web Page" New topic
Author

Display Contents of File on Web Page

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
If I know the path or url of a rtf file how can I display the contents of that file on my web page?

Is there a java library that will convert rtf file to html?

Could OpenOffice be used to convert rtf to html?

Is there any HTML control that would allow me to write and or paste copied data into it then save as rtf?

I really need some help with this.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60739
    
  65

I believe that there may be some rich-edit widgets that use RTF. Whether they have a display-only mode or not is a good question.

Obviously the most straightforward approach would be to convert the RTF into something that easier to display, such as HTML. But that's clearly beyond the scoped of an HTML forum. I'd google for such server-side conversion libraries.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
Bear Bibeault wrote:I believe that there may be some rich-edit widgets that use RTF. Whether they have a display-only mode or not is a good question.

Obviously the most straightforward approach would be to convert the RTF into something that easier to display, such as HTML. But that's clearly beyond the scoped of an HTML forum. I'd google for such server-side conversion libraries.


I have googled until my eyes are crossed but not found a solution. I really need somone with some expertise in this area to guid me in the right direction. Is there a forum here that could help with this?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Steve Dyke wrote:I have googled until my eyes are crossed but not found a solution.


Sure your eyes weren't crossed to begin with? java convert rtf to html

Now, if none of those will work that's one thing, but don't say you didn't find anything at all.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Also, here is a nice list of available free rich text editors for the web.

http://woork.blogspot.com/2009/02/best-rich-text-editors-ready-to-use-in.html
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60739
    
  65

Hmmm, coincidentally, this was just posted in the BA forum.
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
Gregg Bolinger wrote:
Steve Dyke wrote:I have googled until my eyes are crossed but not found a solution.


Sure your eyes weren't crossed to begin with? java convert rtf to html

Now, if none of those will work that's one thing, but don't say you didn't find anything at all.



Maybe my statement was a little strong. What I ment was I did not find any I looked at that would render the graphics portion of a rtf. It only converted the text portion.
 
 
subject: Display Contents of File on Web Page
 
Similar Threads
Embeding RTF on Web Page
display file content in jsp/html web page
Does JPG Java Class Exist
rtf to html conversion
Rich Text Input on HTML pages