aikawa kazuhiko wrote:

Hi
I use your itext product to generate pdf document , and found some problem about versions of acrobat or ie
    I would like to tell you about some ploblem

I write a Servlet page (I copy some of your example code to test it) to generate pdf from web application, each time that user open url (eg. http://localhost/example/TestPDF) i will count number of click my web to database
    problem :
Many of my user when open my url ,while my dababase counting one by one per a user click servlet (it OK). but two of many users open my url , while my database counting will write 2 times to database per one user click ???

I track the problem by use your example code

You definitely haven't read the complete tutorial
http://itextdocs.lowagie.com/tutorial/general/webapp/
Otherwise you would have seen that this is a known
issue (not iText related; it's a browser issue). I quote:
"Another annoying feature of some browsers is that they
hit the server 2 or 3 times with the same request if you
want to serve them a dynamically generated binary file.
This type of behaviour of some browsers can be a real
pain if you are updating a database or keeping statistics
for every PDF that is served."
You'll find a possible solution in the tutorial.
br,
Bruno


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to