A filter can be used to both pre-process a request and post-process it, so it *could* do what your after.
But, I would start by questioning whether what your trying to do is really required... keep in mind that writing to the file system from a J2EE app is forbidden (not that it stops anyone from doing it!)... more importantly though, if you ever need to move the app to an environment where you are deploying as an EAR, you'll find that writing to the file system is *much* harder, and what you do know almost certainly won't work. What are you really trying to accomplish here? What's the underlying goal? Maybe we can offer some alternate suggestions... -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, September 6, 2005 5:39 am, d d said: > > > I guess u r right i must try this out.. > But i am doubtful if the pdf to be grnerated will be fully generated when > we enter in Filter or will it get generated AFTER passing through Filter?? > > On Tue, 06 Sep 2005 [EMAIL PROTECTED] wrote : >>On Tue, 2005-09-06 at 06:19 +0000, d d wrote: >> > Using FO i am generating a pdf report. >> > The code for this is in a JSP (which is obviously generated >> dynamically). >> > Now i want to save a copy of this generated pdf on server. >> > Any idea how this can be done?? >> >>Just guessing but if I understand you right then maybe a filter >>on that request which fetches the output and copies it (also) to >>a file will do the trick. >> >>Same filter might also be able to intercept the request and >>fetch that file if it exists instead of forwarding the request >>to the JSP page. >> >>(Are you trying to cache the PDF output?) >> >>Cheers, >> >>--Amos >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]