Contact: Tel: 2726 - New Media Systems, 1st Floor South, Queens Walk
Here is how you do it: Syntax may not be absolutely right as I can't remember
the syntax! But you should be able to find them from any reference book.
1. open a URL connection to your servlet like this:
URL url("http://yourhost:thePort/servlet/yourservlet");
Connection conn = url.getConnection();
2. get the DataOutputStream from the connection
3. write to servlet your parameters
4. get the DataInputStream from the connection
5. read until no data left
Charles
Leonid Kolytchev <[EMAIL PROTECTED]> on 09/20/2000 12:54:54 AM
To: [EMAIL PROTECTED]
cc: (bcc: Charles Chen/YellowPages)
From: Leonid Kolytchev <[EMAIL PROTECTED]>, 20 September 2000, 0:54
a.m.
Java applets to Servlets and back communication... [Scanned by Yellow Pages
PostMaster]
Hi all,
I am still new to servlets world and so again...:^).
Ok, it is more less understandable how to communicate between HTML elements
and servlets, but let say I would like to build a Java applet interface and
pass parameters from there to a servlet, how to make them communicate?
Thank you again,
Len
___________________________________________________________________________
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