title: how to fix XSS Reflected in java
body: <p>I got fortify report which shows XSS Reflected defect from the below 2nd line.</p>
  <blockquote>
  <p>String name = request.getParameter(&quot;name&quot;);</p>
  <p>response.getWriter().write(&quot;Name: &quot; + name);</p>
  </blockquote>
  <p>Recommendation given: All user input displayed to web clients should HTML encoded and validated.
  This is java code and I am not sure about how to fix this.</p>