Originally posted by Jaap van Hengstum:
I spent quite a few hours on a similar problem also, so I can understand![]()
What I know is that, in my situation, when you are running your servlet from within a security-constraint or HTTPS site, the server (Tomcat in my case) will automatically send a "Cache-Control: no-cache" header with every page (for obvious security reasons). This causes the browser (IE in my case) to disable caching the pages, so when a file is downloaded it is not stored on the disk (unless you specifically request to save it to another file by choosing 'save' in the popup dialog instead of 'open') and in some cases the browser cannot even remember the filename (which might or might not be a bug in IE).
So the solution is to overwrite the Cache-Control header when using content-disposition to download or display a file by setting the header in the code. The Cache-Control header can be set to 'public' or 'private' and I think 'private' may actually be a better choice because, according to the documentation, this requests public proxies not to cache the file but only private caches like the browser cache. I tried this and it works in IE.
This is what I know about this issue.
[ March 18, 2004: Message edited by: Jaap van Hengstum ]
Originally posted by Jaap van Hengstum:
Maybe it's a caching problem. Try adding res.setHeader("Cache-Control", "public") to your servlet.
Originally posted by Kathy Sierra:
Howdy -- I just stumbled in here. I only know a little about WebStart, but I do have it working, so I'll try to jump in here when I can. My post to the other (jboss) topic includes a list of little tips, but I'll be happy to answer any questions I'm capable of[and I'll tell you when I'm not]
cheers,
Kathy
Yay for Java on the Client!!!