• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applets & Streams

 
Muhammad Mansoor
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create *any type of stream b/w applet and servlets. Any solution ??
 
Richie Bradford
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic