Hi All,
I had already written a XSS Filter to reject invalid input. But my application can still send invalid character/script to the browser. I want to prevent these in response object also. For that I think I can use CharacterEncodingFilter (correct me if I am wrong).
My web.xml already have:
How can I give specify another filter with same url pattern without conflicting?Code:<!-- URLRewrite Filter --> <filter-name>xssFilter</filter-name> <filter-class>com.anjib.filter.XssFilter</filter-class> </filter> <filter-mapping> <filter-name>xssFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
Thanks


Reply With Quote