SeanSnow SeanSnow - 1 year ago 371
Java Question

WARNING: Form token does not match the session token null

What is the reason for this warning?

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


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


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

Answer Source

The order of the interceptor token should be first. For example

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

The reason why your session token is null might be the session is expired or closed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download