What should I do to prevent XSS in Java? I'm using Spring MVC. Right now I am just putting all places where I output user text into <c:out />
tags, but this seems error prone as I might miss a place.
Is there an easy systematic way to prevent this? Maybe like a filter or something?
EDIT: I'm collecting input by specifying @RequestParam
parameters on my controller methods.