Yes, including this header is good practice but it does not help this
problem with IE. But, in Netscape, this does the trick. Standards! We all
know who doesn't follow them.
James Wilson
Web Developer -- Servlets, EJB, JSP, ASP
Application Developer -- Java, VB
Pocket PC Developer -- eVB, eVC
HealthFirst Corp.
www.healthfirstusa.com
(505) 344-1400 ext 111
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Probst, Steve
> Sent: Tuesday, January 23, 2001 11:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JSP-INTEREST] Problem while file downloading
>
>
> I think it may have to do with the Content-Disposition header. If you set
> the content-disposition header to attachment, IE should show you
> the save-as
> dialog.
>
> res.setHeader("Content-Disposition", "attachment; filename=\"" +
> fileName +
> "\";" );
>
> -----Original Message-----
> From: James Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Problem while file downloading
>
>
> If you look on MS's knowledge base you'll find that IE 5.5 and all of IE 4
> will display things in the browser and there is NO way to change that.
> They've listed it as a bug and it's been broken for years. I feel your
> pain. If you find a way around it tell me.
>
> James Wilson
> Web Developer -- Servlets, EJB, JSP, ASP
> Application Developer -- Java, VB
> Pocket PC Developer -- eVB, eVC
>
> HealthFirst Corp.
> www.healthfirstusa.com
> (505) 344-1400 ext 111
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey
> > Sent: Tuesday, January 23, 2001 9:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JSP-INTEREST] Problem while file downloading
> >
> >
> > Hmm..I think this might be a problem because of how Windows associates
> > programs and automatically starts those programs. However, it
> seems odd to
> > me that there is no way to force saving to disk. Ofcourse, your
> relying on
> > the browser to interpret the files coming to it, which I think
> is part of
> > the problem. I think using FTP you wouldn't see this problem.
> >
> >
> > > -----Original Message-----
> > > From: A mailing list about Java Server Pages specification
> and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Muddaser Azeem
> > > Sent: Tuesday, January 23, 2001 5:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Problem while file downloading
> > >
> > >
> > > I'v developed a file manager application usnig jsp and
> > > java beans. It is uploading and Downloading the files
> > > correctly But there is a problem. The Browser show a
> > > download dialogue for that file only which could not
> > > be viewd in the browser.... Otherwise it show the file
> > > in the Browser. Like Text file or document file.
> > > But exe... and zip e.t.c it show up a dialogue box But
> > > i want that it should show the dialogue box for each file.
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - Buy the things you want at great prices.
> > > http://auctions.yahoo.com/
> > >
> > > ==================================================================
> > > =========
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > > JSP-INTEREST DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> > ==================================================================
> > =========
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets