You may be able to include a servlet and/or JSP in your portlet WAR that
the links displayed by the portlet go to, to download the files (after
doing whatever additional access control logic you need)... 



-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Evans
Sent: Friday, September 09, 2005 10:13 AM
To: [EMAIL PROTECTED]
Subject: File Download From a Portlet

I wish to create a JSR-168 compliant portlet that will display a list of
files with meta-data and then provide a link download the binary file.

The files will not be public and access control will be on a user by
user basis.

In the servlet world, I would simply hijack the response, set it's
content-type, the file name, read the file from disk and stream it out
on the response.

I gather that this approach will not work in the portlet world.

Has anyone figured out a way to do this?

thanks kindly,
aaron

Reply via email to