Hi
My application is a struts/tiles application.I am generating a pdf in a jsp and get follwong error.The storage token and engine i get from action class.This code is in jsp.
Code is
<%
BinaryView docBinaryView =(BinaryView)documentInstance.getView(OutputFormatType.PDF);
response.setContentType("application/pdf");
response.setHeader("Content-Type", "application/pdf");
response.setDateHeader("expires", 0);
docBinaryView.getContent(response.getOutputStream());
%>
The error i get is
Could not invoke the service() method on servlet /nccb2bjsp/ncc/bo/fetchReportPdf.jsp. Exception thrown : java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
Can anyone help.


