----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Cameron
Thanks for the help. I've checked all that and still no joy. I don't think
the problem is a programmatical error as I am just using the examples
supplied to test JServ is working. Besides, sometimes the programs run and
other times they don't. It appears to be an intermittent problem.
In an earlier posting I had managed to put log statements all the way
through the program and found it got past the close statement. Any ideas
what happens after that and how I can check it?
Regards
Shaun Campbell
----- Original Message -----
From: Riley, Cameron <[EMAIL PROTECTED]>
To: 'Java Apache Users' <[EMAIL PROTECTED]>
Sent: Wednesday, January 26, 2000 6:58 PM
Subject: RE: Problem running servlets
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> >If the servlet is running and outputting the HTML where is it going to?
> Can
> >you think of anything else I can test after this?
> >I have just copied Apache/JServ to another SCO Openserver 5.0.5 system
and
> I
> >got exactly the same result. "This document contains no data ...".
>
>
> Make sure you close the PrintWriter Stream in your servlet,
>
> ie :
>
> file://set the response type
> res.setContentType("text/html");
>
> file://create the PrintWriter
> PrintWriter out = new PrintWriter(res.getOutputStream());
>
> file://do stuff
>
> file://close the PrintWriter Object
> out.close();
>
>
>
>
> If you havent closed the PrintWriter Object, Netscape returns a "Document
> contains no data" dialogue, IE just sits there happily with a blank white
> screen. In both cases they are waiting for the stream to close and hence
the
> document to be completed. Put the out.close() at the very end of doGet()
to
> make sure it closed at the end of each request you make of the servlet
while
> debugging.
>
>
>
>
>
>
>
>
> Cameron Riley
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]