token拦截器

struts.xml

<action name="registerAction" class="com.ssk.action.RegisterAction">
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="token" />
<result name="input">/register.jsp</result>
<result name="invalid.token">/register.jsp</result>
<result name="success">/admin/registersuccess.jsp</result>
<result name="error">/admin/registererror.jsp</result>
</action>

jsp页面加上这句

<s:token></s:token>

你可能感兴趣的:(token)