I have a request which is already coming from a doFilter
method, Now I want to clean the parameters of that request that is free from special characters.
After changing the parameters I want to set that parameter and pass it to the same request.
I have tried request.setAttribute till now, that solves the problem but it doesn't sanitizes the parameter i.e: the parameter is not changed.
I have tried many things till now,
- Some posts in stackoverflow, but that hasn't helped
How can I clean the parameter and again set it to request wrapper and then pass it to doFilter.