----------------------------------------------------------------
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 : 

        //set the response type
        res.setContentType("text/html");
        
        //create the PrintWriter
        PrintWriter out = new PrintWriter(res.getOutputStream());       
        
        //do stuff

        //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]

Reply via email to