title: Unable to implement Struts 2 token interceptor with hyperlink
body: <p>I  tried to implement token interceptor with the <code>&lt;s:url ..</code> tag but its showing error on the first click. i.e.</p>
  <blockquote>
  <p>The form has already been processed or no token was supplied, please try again.</p>
  </blockquote>
  <p>I want to implement this interceptor, because if users already deleted a row and refresh the page once again then the same action should not perform once again.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;s:url id=&quot;linkdelete&quot; action=&quot;DeleteLatestUpload.action&quot; namespace=&quot;/admin/insecure/upload&quot;&gt;
       &lt;s:param name=&quot;latestUploadId&quot; value=&quot;latestUploadId&quot;&gt;&lt;/s:param&gt;
       &lt;s:token name=&quot;token&quot;&gt;&lt;/s:token&gt;
  &lt;/s:url&gt; 
  &lt;a href='&lt;s:property value=&quot;#linkdelete&quot;/&gt;' style=&quot;color: white;text-decoration:  none;&quot; class=&quot;delbuttonlink&quot;&gt;Clear current Uploads&lt;/a&gt;
  </code></pre>
  <p><strong>and my <code>struts.xml</code>:</strong></p>
  <pre class="lang-xml prettyprint-override"><code> &lt;action name=&quot;DeleteLatestUpload&quot; class=&quot;v.esoft.actions.UploadExcel&quot; method=&quot;deleteUploads&quot;&gt;                   
       &lt;interceptor-ref name=&quot;token&quot;&gt;&lt;/interceptor-ref&gt;
       &lt;interceptor-ref name=&quot;basicStack&quot;&gt;&lt;/interceptor-ref&gt;  
       &lt;result name=&quot;success&quot; type=&quot;tiles&quot;&gt; uploadforward&lt;/result&gt;
       &lt;result name=&quot;invalid.token&quot; type=&quot;tiles&quot;&gt;uploadforward &lt;/result&gt;
   &lt;/action&gt;
              
  </code></pre>