I want to download files within a client browser from a web server using JSP. How can I do this?

Nguyen Duc Tien

This is my solution:

<%
response.setContentType("application/zip");
response.addHeader("content-disposition","filename.zip");
out.write("content of the file");
%>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact