struts2跟webx参数注入比较

struts2和webx参数注入比较struts2使用ognl通过setter注入参数,Action非单例有安全漏洞,如何保护Action中

struts2和webx参数注入比较


struts2
使用ognl
通过setter注入参数,Action非单例
有安全漏洞,如何保护Action中的Serice不被参数注入?


webx3
使用 Spring PropertyEditor
通过annocation注入,Action保持单例
没有安全漏洞,但注入比较麻烦。