I am using struts 2 and i want to avoid the duplicate form submission when clicking on refresh button...After getting the result from the Action class, i am coming back to the same jsp and it holds the value entered and also the message that it has been successfully submitted but the problem is that when i refresh the page..it again tries to submit the request....for that i am trying to use Token Interceptor available in struts 2...but i think I'm missing something...
<package name="FOCAccept" extends="struts-default">
<action name="focSubmitRequest" class="bpel.invoke.action.FOCAcceptAction" method="execute">
<interceptor-ref name="token"/>
<result name="invalid.token">/postfocaccept.jsp</result>
<result name="input">/postfocaccept.jsp</result>
<result name="success">/postfocaccept.jsp</result>
<result name="failure">/postfocaccept.jsp</result>
<result name="invalid" type="redirectAction">LogoutCred.action</result>
</action>
</package>