This content has been marked as final.
Show 3 replies
-
1. Re: downloading files from server(JBoss and Tomcat)
ucftcys Jun 13, 2003 5:22 AM (in response to ucftcys)One more thing..the file to be downloaded is dynamic generated...so I cannot put it in the war file..if it can be put in war file..the problem is solved...
-
2. Re: downloading files from server(JBoss and Tomcat)
stuermer_g Jun 13, 2003 10:22 AM (in response to ucftcys)If the file is generated dynamicly you can write to Content to response.getQutputstream(). Don't forget to set the ContentType and the Header.
example:
ContentType: application/zip
Header: response.setHeader("Content-Disposition","multi-part attachment;filename=\"yourFile.zip\";");
Hope this helps
Peda -
3. Re: downloading files from server(JBoss and Tomcat)
ucftcys Jun 16, 2003 8:02 AM (in response to ucftcys)yeah..thanks a lot..it works now...However, if the file name is Chinese, it fails to recognize the file name. DOes anyone know how to set the encoding in the header?? I've tried to set the encoding in the setContentType method. It doesn't work either..