IDependOn-Set: 1
IDependOn-Set: 118
IDependOn-Set: 119
IDependOn-Set: 140
IDependOn-Set: 151
IDependOn-Set: 2
LastModifiedSecs: 926100541
Parent: 119
SequenceNumber: 4
Title: I'm getting Html as text in the page when it is returned from a servlet...why?
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 926100540
Type: monospaced
Lines: 37
----------
From: Devesh Gupta <devesh@india.adventnet.com>
To: "Java Apache Users" <java-apache-users@list.working-dogs.com>
Subject: Re: JServ - Servlet Problem
Date: Fri, May 7, 1999, 2:15 AM


call res.setContentType("text/html") in your servlet before writing into
the stream .

-devesh


At 01:31 PM 5/7/99 +0530, you wrote:
>Hi Everybody,
>
>I have the following configuration:
>
>1. Apache JServ 1.0b4.
>2. Apache Server 1.3.6
>3. JSDK 2.0
>4. Thin JDBC to connect to Oracle Database
>5. OS - Solaris 2.6 Sparc Version
>
>I have written a servlet which will talk to database and after success
>or failure it will throw a html page. Using above setup I m getting html
>as text. It is not coming as html file on the browser.
>
>Can any one help me on this? Is there any setting to be done in
>httpd.conf or in any other configuration file? Or is there any patch? Or
>is it a bug?
>
>Thanks in advance,
>
>Regds,
>
>Venkatraman K
EndPart: 0
