Hello All:
Can I stream a PDF (from a file within the OFBiz directory) to a browser
without getting a:
java.lang.IllegalStateException: getOutputStream() has already been
called for this response
error?
What I really want to do is stream a PDF file inline with my Screen
Widget/Freemarker Template (so I can re-render the same form, without
request parameters) that the User submitted to initiate the download. I
apologize in advance if this seems like a trivial question - but I tried
several different ways of coding this and they all come up with this
error and (of course) my form still displays the previously entered
request parameters. BTW, I don't get the error if I set my request-map
type="none", but If I do that, then I can't redisplay the form (which I
guess would be obvious to those who understand how this works :-)
Regards,
Ruth
- Is it possible to do this? Ruth Hoffman
-