Hi all, Q relating to servlets under JWS1.1.3 on NT4SP3:
I have an applet which requests, via the URL class, a data file
"fred.foo" from my JWS server. This is an applet specific data
file, not HTML. The applet looks thus
URL dataURL = new URL( "http://server/datadir/fred.foo" );
Then I read the data from a stream connected to the URL
InputStream is = dataUrl.openStream();
data = is.readCommands();
This has always worked fine without servlets in the equation.
Now I'm trying to install a servlet filter to intercept the request,
read a cookie which the applet will have sent (I hope cookie sending
works from applets and not just browsers??), process that cookie, and
send it back along with the data file.
I have set up the servlet chain
*.foo file,Filter
but non of this works. The applet now reads EOF from the
InputStream. This is leading me to believe that
a) servlet chains are suited to processing HTML text only
b) applet requests are not the same as browser requests
My servlet doesn't actaully affect the data file supplied by the
'file' servlet at all. Is this a problem?
Any help gratefully appreciated. I'm very confused.
--
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