struts怎么解决xss攻击struts解决xss攻击的方法:1.采用struts2的拦截器过滤,将提交上来的参数转码来解决,例如配置struts.xml,代码如下:<packagename="default"namespace="/"extends="struts-default,j