Hi! First, I'm using Tomcat stand-alone with IBM JDK 1.3 on RH 6.2. I'm developing an applet-servlet application. When I do POST requests I want the applet to pick up any errors from the servlet but I'm getting IOExceptions when reading from the stream. Writing to the stream and activating doPost() is not a problem. For example if I send a NOT FOUND with either sendError() or setStatus() on the stream then I cannot read from the stream in my applet, I get "stream closed". Is is possible for the applet to read these error codes or are they blocked by the browser? I have also tried in my applet to type cast the URLConnection to HttpURLConnection because I then could get the error code with getResponseCode() instead of using getHeaderField(), but this raises Exception as well, cannot find my servlet. I'm still new to servlets so I might be wrong about how to go about error control. Is it recommended to do error control this way with communication between applets and servlets? I know I can sent my error messages with OK but I curious about why the above doesn't work. Any help or comments would be appreciated. Thanks. Mads P.S. Please reply to my e-mail address as well. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
