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.
subject: auto refresh and recalling servlet auomaticallty