struts2 token的应用

struts2 token的使用在struts.xml action里面加上拦截器 interceptor-ref namedefaultStack/interce

struts2 token的使用
在struts.xml action里面加上拦截器

<interceptor-ref name="defaultStack"></interceptor-ref> <interceptor-ref name="token"></interceptor-ref><!--结果页面--><result name="invaild.token">/error.jsp</result>