Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing a servlet's input stream from an Applet -- works on Windows/IE, doesn't on Mac/Safari



On Thursday, July 31, 2003, at 03:21 PM, I wrote (in part):

When this applet is run using the Java 1.4.1 plug-in on my Windows XP
box (IE 6), it works -- the read logic gets the same string that I see
when I run the servlet manually.

When I run the applet using Safari which uses the Mac OS X 1.4.1
plug-in, on the same box as the server is running on, I never get any
bytes from the while loop. The StringBuffer is empty. The debug print
statement shows a valid response is returned: HTTP/1.1 200 OK

This is driving me crazy. There must be a difference in buffering that


I believe I have found the fundamental source of this issue. The servlet I am invoking from the applet assumes that there is session state available that tells it what database connection to use to get the information. BUT, the Java plugin in OS X does NOT access state contained in httpsessions. This is issue with Radar #2903948 discussed in the 1.4.1 release notes (it pays to go back to prime information sources occasionally!).

Does anyone know if this issue is addressed in the latest DP release, or perhaps will be addressed in the Java Plug-in on Panther (OS X 10.3)? I am still using the production release. The suggested workaround is: "don't do this" since the behavior is at the discretion of the browser vendor.

I also found an Apple Technote (QA1124) that discusses a workaround based on URL re-writing that I may try.

For Windows and the Sun Java plug-in there, httpsessions ARE maintained and available to applets since my broken applet works there as-is.

What about other OS/Java combinations? What about Mozilla on Linux for example.

I inherited the design of the application, so I hate to tear it apart. I do appreciate the position that this design is fundamentally flawed.

This is new Java territory for me, so I ask indulgence for these rather lengthy posts of late.

Jim
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.