• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Portlet open window [open save cancel]

 
M Menezes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem, I need open a report in IBM Portal. But i want to make available the screen of [open save cancel] in Windows XP.

source code:

HttpServletResponse httpRes = ControlUtil.getHttpServletResponse(request);

//Teste apra abrir em uma nova janela

httpRes.setContentType("application/pdf");
httpRes.setHeader("Content-Disposition", "attachment; filename=" + url);

httpRes.getOutputStream().write());
httpRes.getOutputStream().flush();
httpRes.getOutputStream().close();

thanks for your help!!!
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Couldn't you just use a little JavaScript to have the page come out?

If you do, just don't forget to properly encode the script.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic