我将token的interceptor-ref写到了表单提交的action里面了,这样的话我发现,正常第一遍的登录都没法登录进去了
<!-- 用户登录 -->
<action name="login" class="AdmininfoAction" method="login">
<!-- <interceptor-ref name="defaultStack"></interceptor-ref>
<interceptor-ref name="token"></interceptor-ref>
<result name="invalid.token">/admin/login.jsp</result> -->
<result name="adminIndex">/admin/index.jsp</result>
<result name="adminLogin">/admin/login.jsp</result>
<result name="input" >/admin/login.jsp</result>
</action>
但是我还想在一个action中写,请问有解决的办法吗?
------解决思路----------------------
判断第一次带了token来没有就是