Can a Servlet follow a write of an object to an applet with a write of some
plain HTML to same response object?

Details:

Applet A prepares an object and sends to Servlet S.
S gets the object, does some DB updates and then writes the object back to
the Applet.
After this, we want the Servlet to write a simple HTML
to display "Update Successful. Now click OK to return to Widgets List"
So, we did this:

    <after the Servlet closed the outputstream to the Applet>
    resp.set-contet-type("test/html");
    out = resp.getwriter(resp);
    <proceed to write HTML to out>

   What happens is:

  After we added the above code to write HTML, the orig functionality has
stopped working,
let alone the new bit. Servlet seems to get the obj from applet, but does
not process it
or send it back. On the Java Console, we get a 'IOException' from the Applet
side.

Question: What are we doing wrong? How can we do it right?

Thanks in advance.

Rali Panchanatham

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to