Hi Mina
If you have the book Servlet Programming by Jason Hunter....
In Chapter 10 Applet-Servlet Communication , he has described several
methods like(passing parameters thru Stream, objects, socketConnection,
socket object, Rmi Object..).
I think that will help you.
Cheers
Girish
> -----Original Message-----
> From: Magdalena Piller [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 27, 1999 4:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How can I send a data from an applet to a servlet
>
> Hi Mina,
>
> You can do use with an UrlConnection ( java.net.URLConnection) from the
> applet to the servlet. The applet can then send any html parameters over
> an
> OutputStream to the servlet. The servlet itself can easily read this
> params
> as if the client was a browser.
> The applet code may look like this:
>
> url = new URL(....);
> uCon = url.openConnection();
> java.io.OutputStream os = uCon.getOutputStream();
> ...write post parameters to this stream (name-value pairs)....
> ...open the input stream with: uCon.getInputStream();
> ...and read the results from this stream
>
>
> greetings
> Maggie
>
> -----Original Message-----
> From: [Mina Gohari] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 27, 1999 9:57 PM
> To: [EMAIL PROTECTED]
> Subject: How can I send a data from an applet to a servlet
>
>
> Hi
>
> I have a question about communication an applet and a servlet.
>
> I wrote a simple servlet and I could run it from a html file , but I
> want a servlet for getting data from an applet and send data to
> applet. So I want an applet and a servlet that communicate together.
>
> Any helps , Thanks in advance
>
> Mina
>
> __________________________________________________________________________
> _
> 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
___________________________________________________________________________
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