0

이 경고의 이유는 무엇입니까?경고 : 양식 토큰이 세션 토큰 null과 일치하지 않습니다.

WARNING: Form token PR78LAIFZJQRTL66GGAJDT61511L6YHN does not match the session token null 

JSP :

<s:form method="post" action="test"> 
    <s:token></s:token> 
    Email:<input name="email" /> 
</s:form> 

Struts.xml :

<action name="test" class="test.RegisterAction"> 
    <interceptor-ref name="defaultStack" /> 
    <interceptor-ref name="token" /> 
    <result name="invalid.token">/error.jsp</result> 
    <result>/user/success.jsp</result> 
    <result name="error">/error.jsp</result> 
</action> 

답변

2

제되어야 인터셉터 token 순서. 예를

<interceptor-ref name="token" /> 
<interceptor-ref name="defaultStack" /> 

세션 토큰이 null 세션이 만료되었거나 폐쇄 될 수 있습니다 이유를 들어.