L
laredotornado
Hello, I'm using a Mac OS X, IE 5.2 browser to visit the pagee
http://mydomain.com/temp/
in which there is an index.jsp page that contains the following codee
<%
response.setContentType("application/vnd.ms-excel");
response.sendRedirect("http://mydomain.com/dir1/abcd.xls");
%>
Unfortunately, whenever I visit "http://mydomain.com/temp" the file
that downloads is named "temp" instead of "abcd.xls," which is what I
would prefer. I can rename the file and open it normally in Excel, but
the file naming thing is annoying.
Is there any way I can write some Java to make the file download with
the proper name? There are probably preferences I can set on my
browser, but I can't do that for everyone.
Thanks for the advice, - Dave
http://mydomain.com/temp/
in which there is an index.jsp page that contains the following codee
<%
response.setContentType("application/vnd.ms-excel");
response.sendRedirect("http://mydomain.com/dir1/abcd.xls");
%>
Unfortunately, whenever I visit "http://mydomain.com/temp" the file
that downloads is named "temp" instead of "abcd.xls," which is what I
would prefer. I can rename the file and open it normally in Excel, but
the file naming thing is annoying.
Is there any way I can write some Java to make the file download with
the proper name? There are probably preferences I can set on my
browser, but I can't do that for everyone.
Thanks for the advice, - Dave