Jos,
I think that the above solution allows only one way communication - from servelet (or any resource) to the applet. What if the applet must submit parameters to the servlet, and then receive the response from the servlet, depending on the parameters. Should we append the GET parameters to the
String url and then do URL url=new URL(url)? What about the POST method- here the request body is separate from the URL?
I think the applet must open a low level Socket connection (new Socket(host,port) with the web server and then send and receive through that socket. This means that the applet will need to write through the socket using the http protocols i.e. it will have to write properly formatted strings of GET or POST request.
I know these things are available in books like O'Reilly's, Core
Java etc. I am hoping Vishnu will do the R & D and let us know the WHOLE truth.