Hi Eoin ,

1
I am not sure about your email because my English is not good :-)
but I guess you want to use "HTTPTunneling" between applet and
servlet.


2
The following lines can work in:
    a   Netscape 4.7,
    b   perhaps can work in IE5.0+J2SE1.2.x(or 1.3) Java Plug'in
    c    but doesn't work in IE 5.0.   (I guess it is because that the
          JVM in IE5.0 "rewite" the class "URLConnection".)

...
url=new URL("http://xxx.xxx.xxx.xxx:8080/servlet/test_servlet");
URLConnection con=(URLConnection)url.openConnection();

con.setUseCaches(false);
con.setRequestProperty("CONTENT_TYPE", "application/octet-stream");
con.setDoInput(true);
con.setDoOutput(true);

os=new ObjectOutputStream(con.getOutputStream());
os.writeObject("hello, dear Mr.Servlet :-)");
os.flush ();

is=new ObjectInputStream(con.getInputStream());
s_in=(String)is.readObject();
...



Bo
Sept.04,2000




Eoin Shalloo wrote:

> Hi,
>
> Does anyone have any simple proof-of-concept type bits of code that
> demonstrates applets exchanging data with servlets and vice versa. I have
> tried already but without success and would appreciate a simple working
> example to build on.
>
> Many thanks in advance.
>
> Eoin
>
> ___________________________________________________________________________
> 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