Error in downloading .txt files

A

akhila

I get the following error when I try to open .txt file from my
application.

Cannot find the C:\Documents and Settings\akhila\Local
Settings\Temporary Internet Files\Content.IE5\AVPXGTFX\add[1].txt.
Do you want to create a new file??

This error happens when I try to open .pdf,.gif,.jpg , .zip

But .doc,.xml works fine with no problem. But If I try to save the
files in my local Desktop and open it everything works fine. I am using
jboss-3.2.1as my application server.

Could any one help me to solve this problem
 
A

Andrea Desole

akhila said:
But .doc,.xml works fine with no problem. But If I try to save the
files in my local Desktop and open it everything works fine. I am using
jboss-3.2.1as my application server.

have a look at how the "mime-mapping" element in the web.xml works.
Tomcat, which JBoss uses, jas its own (in its own web.xml), but you
should be able to change it or to add new ones to your own web.xml
 
A

akhila

Thanks for your reply.

I solved the issue. The problem was in my Servlet. They had given
response.setHeader("Content-Type","No-cache") and this made the IE to
think that it should not save the stream into the TIF folder. I changed
the line to response.setHeader("Content-Type","public") and it worked
for me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top