I studied this forum http://greatwebguy.com/programming/java/simple-cross-site-scripting-xss-servlet-filter/
works perfect except for Mutipart request .. I did some research on google and Found that things are working on servelet 3.0 and their is some MutipartRequest class which again is unavailable in the servelet API I am using ... do anyone have any Idea on how I can write filter to omit XSS .
I know what is the right way of doing it i.e using jstl tag libraries using c:out ... but I just need to stop it to get stored in database using the Filter ...Any one with any idea on same.