wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes Applets & Streams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Applets & Streams" Watch "Applets & Streams" New topic
Author

Applets & Streams

Muhammad Mansoor
Ranch Hand

Joined: Nov 26, 2000
Posts: 30
I am trying to create *any type of stream b/w applet and servlets. Any solution ??
Richie Bradford
Greenhorn

Joined: May 09, 2001
Posts: 1
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Applets & Streams
 
Similar Threads
[eclipse] any good .html plugin that you recommend?
Page implicit Object?
Unadulterated petrol pumps in bangalore
Suggestions for team cheer
unable to add App Project into testServer