You should ensure that the url of your page maps to the servlet. For example if your url is <your_context>/somepage, you should map the path 'somepage' to the servlet that you wish to execute and process the request. The mapping is defined in web.xml. The same's true for jsps too.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: auto refresh and recalling servlet auomaticallty