title: Struts 2 encode input parameters to avoid XSS
body: <p>I have an application built with Struts 2. It has some issues with Cross-site scripting (XSS) attacks. I want to encode some of the actions input parameters in a similar fashion to JSP <code>&lt;c:out value="${somevalue}"/&gt;</code> Is there any easy approach to do this in Struts 2? Java API method would do fine.</p>
  
  <p>EDIT I found this one - <a href="http://www.owasp.org/index.php/Talk:How_to_perform_HTML_entity_encoding_in_Java" rel="nofollow">http://www.owasp.org/index.php/Talk:How_to_perform_HTML_entity_encoding_in_Java</a></p>
  
  <p>Any experience with it?</p>