Hi,
 
The portlet spec states that you may add a servlet to your portlet app WAR. As the portlet RI, pluto allows you to do that. So if you are writing a JSR-168 compatible portlet app, you may use a servlet to solve the file download problem. For the WebSphere portal, if it does not support servlet, it is not spec compatible. Maybe you need to take a look at the WebSphere docs to find the right way for file downloading.
 
Hope that helps.
Regards.
 
2005/9/9, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

In Websphere Portal, you cannot add a servlet in your portlet war.
So it isn't a standard method to solve the problem.
I have encountered the same problem when i doplyed Sun Ajax Portlet on
Websphere Portal, in fact it use a servlet to manage XMLHttpRequest.
I would like to find a standard method to solve this problem!

Thanks,
Luca





                   "Mike Burati"
                   <[EMAIL PROTECTED]       To:     <[email protected]>, < [EMAIL PROTECTED]>
                   reet.com>            cc:
                                        Subject:     RE: File Download From a Portlet
                   09/09/2005
                   17.29
                   Please respond
                   to pluto-user







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








--

ZHENG Zhong

1 Avenue Alphand
75116 Paris, France
+33 6 76 80 45 90

heavyzheng {AT} gmail {D0T} com

http://heavyz.sourceforge.net
http://heavyz.blogspot.com
http://spaces.msn.com/members/zhengzhong


Reply via email to