Well guys, I guess this question is pretty known by you.
After making a better search at the list archives I found a solution.
the solution is to put the file name after the addressing of the servlet and
before the parameters.
Something like this:
<path to servlet>/<name desired>?<parameters>
If any of you know a better way (one that is a standard) please talk about!
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Ricardo Santiago
Sent: Wednesday, February 16, 2000 7:33 PM
To: [EMAIL PROTECTED]
Subject: Download Servlet (Content-Disposition header entry)
Hi friends,
I�m developing a simple servlet to let http user make download of files in
my server.
The problem is that IE is not acting as expected.
I�m using the Content-Disposition header entry to specify what name should
be shown to the user if he/she choses to "save as" the file.
But IE5 is showing the "save as" dialog twice. First with the complete URL
name, and then with the right file name.
I hope there is a bug in my code, so its going to you as an attachment.
I�ve tested this servlet with jwsdk-1.0.1 and resim1.1
Thanks for your help ..
<PS: The code is a bit uggly, but take it easy, its just for tests>
Ricardo Munhoz Santiago
SUN Ceritified Programmer for the JAVA 2 Platform
Eversystems (Research and Development)
www.eversystems.com.br
Ricardo Munhoz Santiago
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html