At 02:12 PM 9/5/2002 +0200, you wrote: >Hi all, > >Can somebody pls tell me how I can convert a rich text document(rtf) I'm >reading from the database to html for display with my JSP page. > >Thanks.
I recently put RTF-reading capabilities into a system I wrote for a client. I used an RTF grammar for JavaCC that I wrote to parse the document, which I then turned a stream of XML SAX events. You could do something similar. The grammar I wrote is at: http://www.cobase.cs.ucla.edu/pub/javacc/#Rsection You can read more about JavaCC, if you're not familiar with it, at: A good intro article that Chuck McManis wrote for JavaWorld a while back: http://www.javaworld.com/javaworld/jw-12-1996/jw-12-jack.html The JavaCC FAQ: http://www.engr.mun.ca/~theo/JavaCC-FAQ You can also read more about the project I worked on and how I dealt with the RTF issues in an article I wrote for Java Developer Journal recently: Spread Your Wings With Cocoon http://www.sys-con.com/java/articleprint.cfm?id=1480 HTH. Email back either on-list or off if you need any more pointers. DR To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
