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