add context parameters to web.xml
fixed refresh issues and made servlet completely generic, depends on context for any parameter values