I have a strange situation. I am generating PDF with Servlet and I add dynamically changing database query based on some parameters. When I execute this application to generate PDF first time all information from database are correct displayed but second time when I change parameters (results from database should be different) some data (let say first part, first couple of query) are changed (correct) but some data (let say end part) are not updated (stay the same from old query). I read some forums and search in google and people say that reason may be the cache in Apache Tomcat but I disable cache and problem still exist. Any sugestions ?