views:

62

answers:

0

Hi,

i'm stuck with a problem which involved Weblogic Portal, an Struts 1.3 Portlet and a Download Operation.

Normally a download operation can be triggered by:

  response.setContentType("application/octet-stream");
  response.setHeader("Content-Disposition", "attachment; filename=file.csv");
  response.setHeader("Content-Length", String.valueOf(csv.length));
  ServletOutputStream reponseOutputStream = response.getOutputStream();
  reponseOutputStream.write(csv);
  reponseOutputStream.flush();
  reponseOutputStream.close();

However I'm not able to make it work inside a portlet, I'm under the impression that due to how Portlet behave this is not possible.

Any help/link/resource is really appreciated

:-/