tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdul Wahab" <awa...@erp21.com.my>
Subject HTTP Download.
Date Wed, 10 Dec 2003 06:27:01 GMT
Hi,

Im using servlet to download the file to client in HTTP, the code as
follows..

 response.setHeader("Content-Disposition", "attachment;
filename=\"abc.txt\"");

This works fine in the way of 1st prompting to the user to click on "open"
"save" "cancel", assumes user click on "save" and shows the SaveAs dialogue.

But what I need is, upon clicking on download link from my page, immediatly
I want to show "SaveAs" dialogue. Is it possible.. and how to do...

Thanks.
Wahab.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message