Does anyone know how I could display an rtf string from JSP? I have resumes stored in a database and want to display them in a browser.

Dane Foster

You can't render rtf directly in your JSP without first converting it some other format like HTML or XML. I'm sure if you search the web you can find an RTF to XML, XHTML, or HTML converter.

Your other option would be to use a Servlet instead of a JSP and set the 'content-type' header to text/richtext. You can then access the ServletOutputStream and send the RTF directly to the browser. This will cause the browser (in most cases) to start up the user's local rtf editor (i.e. MS Word).