论坛: 公开讨论 (Thread #12312)

Portlet for download file (2006-09-13 18:12 by 匿名 #24867)

Hi,
I have a problem at created a portlet for the download file. When I set the response.setContentType("application/octect");
and response.setHeader("Content-disposition", "attachment;filename=output.xml");
my portlet don't work. is There a portlet the download a file??? best regards.

回复到 #24867×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: Portlet for download file (2006-10-16 12:55 by shinsuke #25470)

For a download feature on a portlet,
it's implemented as a servlet. Please refer:
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pal/vfs-portlets/src/java/jp/sf/pal/vfs/servlets/FileServlet.java
回复到 #24867

回复到 #25470×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录