Originally posted by Phil Hanna:
It's browser dependent, but basically you need to send back a
Content-Disposition: attachment; filename="myfile.jar"
header. That's good enough for Netscape; Internet Explorer still doesn't get it right unless the URL that requests the servlet ends with ".jar". You can have your HTML form append a dummy filename ending with ".jar" at the end of your servlet invocation URL.
Hi Hanna,
As U said, I just tried by ur method and it works very well with netscape, but in the case of Internet Explorer, if I want to download, various file with various extensions, like ".txt", ".jar", ".exe"...
I just gave as
<form Action=""/DownloadServlet?dummy="+<%=safe.filename%>">
where "safe.fileName" has the corresponding fileName, but this is not working...
is there anyway to overcome this problem....
regards,
Satissshhh!!!...
------------------
Satish k.dhamodharam
[This message has been edited by Satish Dhamodharam (edited May 21, 2001).]