I ran into a problem like this before, and I suspected it was the PDF reader which sent the second request. It wasn't happening with earlier Acrobat versions, though. When our company rolled out a (then) newer Acrobat version, we started seeing these double requests. The solution I used then was to set the response headers on the output PDF so it doesn't expire immediately. This way, the browser/reader uses the PDF cache from the first request, and doesn't ask that the PDF be generated again. I think we set ours to expire after 3 mins. Just make sure you don't expire it before you're done generating your PDF, or else you won't see any difference.
hth, Hubert --- Vetrichelvam Malaichamy <[EMAIL PROTECTED]> wrote: > Hi > I am Vetri Chelvam. I am using struts 1.1. I am getting a problem. > The problem is like this. > There is a button on a Page. And on click of this button, the Action > servelet is called and the database updations are done and the request is > served with the response of opening a PDF template. Once the PDF is > opened, > the request is submitted again and the Action servlet is called and the > database is updated again. But we have only one PDF template is opened. > For > One request of opening the PDF template, there are two Database updations > are done(since the request is submitted again). Can anyone please help me > to > solve this problem. I am little bit tied up with this problem. > > Actually this problem occurs during my UAT of the application. But it does > not able to be replicated, in the development environment. > > Thanks > Vetri > > > > > > ================================================================================== > > Interleasing (UK) Limited > Registered Office: Griffin House, Osborne Road, Luton, LU1 3YT > Registered in England No. 274476 > Telephone: +44 (0) 870 732 4444 > Fax: +44(0) 870 732 4000 > > The above E-mail and any attached files ("E-mail") may contain confidential > and/or privileged material and > is intended solely for the addressee(s). If you are not the intended > recipient > or the person responsible for delivering to the intended recipient, please > be advised > that you have received this E-mail in error and that any use, > retransmission, dissemination or copying is > strictly prohibited. > > If you have received this E-mail in error please delete the material from > any computer and notify the Computer Helpdesk > by telephoning the above number. > > The E-mail is for information only and should not be relied, acted upon, > copied or changed without our written authority. > > We make no representation, disclaim all responsibility and accept no > liability > as to the completeness, accuracy and use of the E-mail prior to written > confirmation in the form of a letter or fax. > > Any opinions expressed in this E-mail may be those of the individual(s) > and not necessarily of Interleasing (UK) Limited. > > ================================================================================= > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]