I am playing around with a filter and am having problems getting it to work. Whenever I try to reload the app in tomcat manager, it stops running. As soon as I remove the filter stuff from the web.xml it starts to run again. See code below:
I have another problem, I am trying to use response.setError() but compiler tells me 'symbol cannot be found'. It looks like its due to the fact that ServletResponse is being used and sendError works with HttpServletResponse. Is there anyway I can fix this ?