在请求表单中添加<s:token></s:token>
然后在struts.xml文件中添加配置信息
<action name="register" class="com.dimeng.member.baseinfo.action.MemberAction" method="register">
<result>member_reg_success.jsp</result>
<result name="input">member_reg.jsp</result>
<interceptor-ref name="tokenSession">
<param name="includeMethods">register</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"/>
</action>