Re: explorer can't open protected files but mozilla can

2004-08-18 Thread Jon Wingfield
This has come up several times recently. It's all to do with how IE 
handles content. It seems, whenever a plug-in is used (excel, word, 
acrobat etc) IE has to download the content to its cache before the 
plug-in can be passed the content. So, when content is served from a 
protected area Tomcat adds http headers so that the content is not 
cached at proxy or browser level. This causes IE problems ;)

We've solved this by selectively changing the http headers that go with 
content served to IE. This solution is detailed in the thread titled 
'Tomcat 4.1.30 adding no-cache to http headers' on this list from last 
week. You'll have to write and deploy a Filter to modify the headers but 
it's not hard.

HTH,
Jon
Janko Harej wrote:
Hi!
I have a web application with a protected folder and some files in it. 
My webapp structure is:

testapp
login.jsp
\ WEB-INF
\ protected
   a.gif
   archive.zip
   text.txt
   word.doc
When I try to access any file in "protected" directory, browser opens 
login.jsp and asks for username and password - everything ok. The 
problem is with internet explorer - when I try to open a.gif or text.txt 
explorer opens them,

!!! but if I try to open archive.zip or word.doc, it fails and says that 
file does not exists or archive is corupted. !!!

If I use Mozilla everything works perfectly.
I've tried to user tomcat 5.19 and 5.27 on windows xp and linux. It 
always works on mozilla 1.4 but not in internet explorer 6.0 and 5.5.

So is anything wrong with my app, or is this internet explorer fault (so 
this is wrong user list?).

Thanks for any advice
Janko
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


explorer can't open protected files but mozilla can

2004-08-17 Thread Janko Harej
Hi!
I have a web application with a protected folder and some files in it. 
My webapp structure is:

testapp
login.jsp
\ WEB-INF
\ protected
   a.gif
   archive.zip
   text.txt
   word.doc
When I try to access any file in "protected" directory, browser opens 
login.jsp and asks for username and password - everything ok. The 
problem is with internet explorer - when I try to open a.gif or text.txt 
explorer opens them,

!!! but if I try to open archive.zip or word.doc, it fails and says that 
file does not exists or archive is corupted. !!!

If I use Mozilla everything works perfectly.
I've tried to user tomcat 5.19 and 5.27 on windows xp and linux. It 
always works on mozilla 1.4 but not in internet explorer 6.0 and 5.5.

So is anything wrong with my app, or is this internet explorer fault (so 
this is wrong user list?).

Thanks for any advice
Janko
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]