Thanks rob. Now it is working. Everytime, when I am making the call to
servlet, I am creating a new connection.
At 10:22 AM 02/01/2001 +1100, Rob Griffin wrote:
>Unni,
>
>Are you creating another URLConnection for the second try?
>
>You need to be aware that the URLConnection to a HTTP server
>is a 'once only' connection, you can send only one request and
>receive only one reply with it, unless you use keep-alives
>(perhaps, never used them myself).
>
>To communicate a second time create a new URLConnection and use
>that. Ditto for every subsequent request and reply.
>
>Hope this helps,
>
>Rob Griffin
>Quest Software
>
>E-mail: [EMAIL PROTECTED]
>Web site: http://www.quest.com
>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Unni
> > Nair
> > Sent: Sunday, 31 December 2000 8:16
> > To: [EMAIL PROTECTED]
> > Subject: why applet-servlet call works first time and not second time?
> >
> >
> > I am trying to do an applet to servelt communication. It works fine in the
> > first time and when I try the same again, it is failing. Does anyone know,
> > why it works first time not in the second time?? It is failing in the
> > following line of code
> > InputStream in = con.getInputStream();
> >
>
>___________________________________________________________________________
>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