Is your file showing up in your browser window as text?
If so, then you need to specify the content type of your response (i.e
response.setContentType("..")).
If you specify a content-type which the browser does not now how to handle
then it will ask the user to save it to disk.
For example, I have put together a small site which will generate jsp pages,
so I set the content type to text/jsp and with IE (4 & 5), it asks me to
save the file to my local disk.
Otherwise, your web server is probably assuming that the mime type of your
response is text/plain.
b.t.w. you can stream your response directly to the browser without having
to save it as a file and re-directing it (assuming you have set the content
type).
MIke
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Shannon Moschetti
Sent: Friday, March 17, 2000 3:11 PM
To: [EMAIL PROTECTED]
Subject: getContent
I've got a jsp app that, among other things, queries a database for objects,
and generates an html table listing information about the resulting objects.
I have wrapped href tags around the same key in each row of the table. When
the user clicks on a row's key, my code gets the content of the object tied
to the key. The content is saved(temporarily) to the webserver and then I
do a sendRedirect() passing in the location of the content file on the
server which brings up the browser's Save/Open dialog -- letting the user
download the file. This seems to work WOF in Netscape Nav, but doesn't want
to work in IE. Has anyone else had any experience with this? Any ideas?
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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".
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