Yes, you're using Http, and for every request you make you have to open an
URLConnection. See Http protocol...

----- Original Message -----
From: "Yann Durand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 23, 2000 11:34 AM
Subject: Multiple requests to a servlet from applet


> Hi all,
>
> I've an applet which send requests to a servlet, read response, resend
> request, reread response, ....
>
> First request is OK, but when i try to make another request, i've got an
> exception :
>
> java.io.IOException: Cannot write output after reading input.
>  at com/ms/net/wininet/http/HttpURLConnection.getOutputStream
> (HttpURLConnection.java)
>
> So my question is :
>
> Do I need to open a new connection to the servlet at each time i send a
> request ?
>
> Thanks
>
> Yann
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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