Raj, A portlet cannot alter those response headers the way a servlet can.
I believe your options are to either use the file server component of the pipeline (which to be honest I don't know much about) or you could simply make the link a link to a servlet within your application, thereby by-passing jetspeed. HTH, aaron On 4/8/06, Raj Saini <[EMAIL PROTECTED]> wrote: > Hi, > > > I am building JSF based portlet for downloading a file using MyFaces JSF > bridge. > I do the following to make the file force download: > > 1) Set "content-disposition" header to contain the correct filename > 2) Set "content-type" header to "application/octet-stream" or something > more accurate if the information is present in attachment metadata > 3) Dump the content using a ServletOutputStream > > When I click on the link to download the file, instead of throwing a > dialog box for saving/opening the file, browser dumps the the binary > contents on page. However, this works fine as standalone application. > > Is there something extra I need to do to force download file in > Jetspeed? Am I missing something here? > > Regards, > > Raj > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
