Skip to main content
4 of 5
corrected spelling error
Asaph
  • 161.7k
  • 25
  • 201
  • 203

Write a simple class that subcalsses HttpServletRequestWrapper with a getParameter() method that returns the sanitized version of the input. Then pass an instance of your HttpServletRequestWrapper to Filter.doChain instead of the response object directly.

Asaph
  • 161.7k
  • 25
  • 201
  • 203