I developed a Java Web app using JSP and Servlet. Client did run a Security audit using a security team and they came back complaining the app is vulnerable to XSS attacks (Cross Scripting).
They have suggested to do output validation as well as server side input validation for all fields, and suggested using centralised input validation Lin's from OWASP and Apache.
I searched this, they seems to be true, but a highly decorated SO user suggested output validation is sufficient - https://stackoverflow.com/a/3445373/1379286
According to him, the attack has no meaning to database or server code, so we should only worry about displaying matter. Answer is old, but edited in 2020 May
The web app is used by the GM and the IT admin of the company, available in public URL
So, JSTL only is the way to go?