Servlet question: the orig filename# Java - 爪哇娇娃
r*s
1 楼
Hi,
I have a servlet for downloading purpose, mapped as name called
"dlservlet". It gets the file from somewhere else and return
it back to the client as a binary stream.
However, anytime the user gets the file, the browser popups the
saveas dialog with the default filename as "dlservlet". My question
is, is there anyway that I can set the name in the popup saveas
dialog to be the original filename?
Thanks a lot!
I have a servlet for downloading purpose, mapped as name called
"dlservlet". It gets the file from somewhere else and return
it back to the client as a binary stream.
However, anytime the user gets the file, the browser popups the
saveas dialog with the default filename as "dlservlet". My question
is, is there anyway that I can set the name in the popup saveas
dialog to be the original filename?
Thanks a lot!