I try generate excel view in my report plugin by next code:
HttpServletResponse response = ActionContext.getResponse();
ServletOutputStream out = response.getOutputStream();
workbook.write(out);
out.flush();
out.close();
response.addHeader("content-disposition", contentDispositionValue);
return "";
But when i try get excel view browser send me network error.
What a right way to use Apache poi for generating excel view?