Pls DR can u send me a sample code which can enable me achieve it.
I tried the following code and only got the windows download dialog which
actually downloaded the rtf file.

<%-- Page Directives --%>
<%@ page language="java" buffer="8kb" autoFlush="true" isThreadSafe="true"
isErrorPage="false" errorPage="ErrorPage.jsp" %>

<%@ include file="sec.jsp"%>

<%@ page import = "com.sybase.jaguar.jcm.*" %>
<%@ page import = "java.sql.*" %>
<%
        response.setContentType("application/rtf");

        String sql = "select statement_name from company_details where
parameter_code='ST' and statement_type='MISSN' order by row_counter";

        JCMCache cache = JCM.getCacheByName("SelfServiceDB");
        Connection conn = cache.getConnection(JCMCache.JCM_WAIT);
        Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);

        ResultSet resultSet = stmt.executeQuery( sql );
        while (resultSet.next()){
                out.print(resultSet.getString(1));
        }

%>

-----Original Message-----
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 7:50 PM
To: JDJList
Subject: [jdjlist] RE: convert rtf to html


Yes.  Use mime type "application/rtf".  (I mention this in my article,
which I referenced in my response to your first rtf question.)


DR


At 06:38 PM 9/5/2002 +0200, you wrote:
>Is there a way I can display a rtf document on a web page by way of setting
>a MIME TYPE or something?
>
>-----Original Message-----
>From: Jason Bell [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, September 05, 2002 3:15 PM
>To: JDJList
>Subject: [jdjlist] RE: convert rtf to html
>
>
>nothing springs to mind......
>
>try this
>www.google.com
>in the search box type:
>
>"converting rtf to html with jsp"
>
>
>
>rgds
>jase
>
>
>-----Original Message-----
>From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
>Sent: 05 September 2002 13:12
>To: JDJList
>Subject: [jdjlist] convert rtf to html
>
>
>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.
>
>To change your JDJList options, please visit:
>http://www.sys-con.com/java/list.cfm
>
>
>To change your JDJList options, please visit:
>http://www.sys-con.com/java/list.cfm
>
>
>To change your JDJList options, please visit:
>http://www.sys-con.com/java/list.cfm



To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm


To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to