El vie, 09-09-2005 a las 17:46 +0200, [EMAIL PROTECTED] escribió:
> 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!
> 

The standard (JSR-168) says that servlets and portlets can be bundled
together in a portlet war. If WeSphere Portal does not allow this, it is
WebSphere which is non-standard.

I'd ask in their support lists for alternate ways to achieve this kind
of functionality. In a portlet one cannot play with mime type or
character set, as there are several portlets involved in the same page
and the portal can decorate the page even for maximized portlets.

One possibility would be to forward to a separate servlet container,
where the download would take place, but it is a kludge, and I'm not
sure that all requirements of A&A, session, etc. can be met easily.

Regards
Santiago

> 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
> 
> 
> 
> 
> 
-- 
VP and Chair, Apache Portals (http://portals.apache.org)
Apache Software Foundation

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to