I am currently developing a system using JSP. When I need to do printing in my program, I will use the browser's print function but the problem is by using this feature I cannot keep track whether user clicks OK or Cancel button. So I'm thinking of developing my own print function. Is it possible ? How to do that ?