RE: problem streaming file to browser

2002-12-31 Thread pqin
Bischoff Cc: [EMAIL PROTECTED] Subject: RE: problem streaming file to browser Hi Sven's suggestion on returning null in "ReportAction" got me past the problem of not being able to run the "report generation" a second time consecutively. Now, another problem still re

RE: problem streaming file to browser

2002-12-30 Thread Srinivas Sampige
Hi Sven's suggestion on returning null in "ReportAction" got me past the problem of not being able to run the "report generation" a second time consecutively. Now, another problem still remains. In "ReportAction" depending on various conditions I am doing processing and forwarding back to the c

RE: problem streaming file to browser

2002-12-30 Thread pqin
st Subject: RE: problem streaming file to browser Hi Thanks for your reply.The code you have supplied is on the lines of what I am doing. Here is what happens. First time the action is run the PDF comes out fine to the nrowser but with this message on the server side - 2002-12-27 15:39:46 - C

Re: problem streaming file to browser

2002-12-27 Thread Sven Bischoff
if you generate the response yourself, you should return null in your ReportAction. sven Srinivas Sampige wrote: Hi Thanks for your reply.The code you have supplied is on the lines of what I am doing. Here is what happens. First time the action is run the PDF comes out fine to the nrowser bu

RE: problem streaming file to browser

2002-12-27 Thread Srinivas Sampige
r.close() ; >if (in != null) >in.close() ; >if (bis != null) >bis.close() ; >if (stmt != null) >stmt.closeFile() ; >} > >Regards, > > >Phillip Qin > >"This Guy Thinks He Knows Eve

RE: problem streaming file to browser

2002-12-27 Thread pqin
hillip Qin "This Guy Thinks He Knows Everything" -Original Message- From: Srinivas Sampige [mailto:[EMAIL PROTECTED]] Sent: December 27, 2002 2:39 PM To: [EMAIL PROTECTED] Subject: problem streaming file to browser Hi I havene an action in which I am streaming a PDF file to the

problem streaming file to browser

2002-12-27 Thread Srinivas Sampige
Hi I havene an action in which I am streaming a PDF file to the browser. I am doing that by doing a response.getOutputStream() in the action and writing to the resulting ServletOutputStream. The first time it works fine, the PDF appears on the browser but with an illegal state exception on the