title: How to call action class using <a href> tag
body: <p>The following code is giving error as:</p>
  
  <blockquote>
    <p>There is no Action mapped for namespace / and action name
    .</p>
  </blockquote>
  
  <p>code:
  .jsp file:</p>
  
  <pre><code>&lt;a href="&lt;s:url action='DisconnectAction' /&gt;"&gt;Disconnect&lt;/a&gt; 
  </code></pre>
  
  <p>struts.xml</p>
  
  <pre><code>&lt;action name="DisconnectAction" class="ActionPackages.DisconnectAction"&gt;
      &lt;result name="success"&gt;/JSP/mytemplate.jsp&lt;/result&gt;
      &lt;result name="input"&gt;/JSP/mytemplate.jsp&lt;/result&gt;
      &lt;result name="error"&gt;/JSP/mytemplate.jsp&lt;/result&gt;
      &lt;result name="failure"&gt;/JSP/mytemplate.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>I want to perform action and keep the current accessing page only which is mytemplate.jsp</p>