Hi all, it's dawning on me that servlets under the guise of SSI and
filter/chains aren't going to solve my problem, which is:
an applet is running, receiving a constant data stream "A" from a
servlet via the URL class. Fine, works great, and makes firewall
problems redundant.
When the applet (via a user request) requests some new form of data
"B", I want to catch that request in a servlet, and note that applet
"X" asked for data of type "B". Ideally, I'd like the servlet to set
a cookie so that its up to the browser to actually STORE the fact that
the applet asked for "B". Of course the server as a whole must server
the data "B" back to the applet, so I set up a chain "file,RR" where
"RR" is the servlet recording the requests made by the applet.
Now, SSI won't work of course cos there's not a html page in sight
here. Further, servlet chaining doesn't seem appropriate, since I
don't want to actually change any of the data provided by the "file"
servlet, just set a cookie in the response. Given that I have been
trying to do this with a chain, is my RR servlet required to copy all
of its input data back to its output, else the data disappear and
never reach the applet?
ServletInputStream sis = req.getInputStream();
ServletOutputStream sos = res.getOutputStream();
while( bytes left in sis )
write them to sos
This seems a bloody expensive copy when all i want to do is note the
incoming request.
Any help gratefully appreciated.
stu
--
Stuart Maclean, Research Associate
University of Washington
ITS Research Program, College of Engineering
Box 352500
Seattle, WA 98195-2500
Tel: (206) 543-0637
___________________________________________________________________________
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