I am trying to create *any type of stream b/w applet and servlets. Any solution ??
posted 15 years ago
Originally posted by Muhammad Mansoor: I am trying to create *any type of stream b/w applet and servlets. Any solution ??
To get a input/output streams on the servlet side you can use the request and response parameters of the post/get methods ex: InputStream inputFromApplet = request.getInputStream(); OutputStream outputToApplet = response.getOutputStream(); On the Applet Side you open a connection to the URL of the servlet and use this to get the the input/output streams as above.