title: Error in Form Action attribute struts2
body: <p>My login.jsp is in the web folder.</p>
  
  <p>And action for this is specified as :</p>
  
  <h2>struts.xml</h2>
  
  <pre><code>&lt;package name="admin" extends="struts-default" namespace="/secure"&gt;
  
  &lt;action class="actions.LoginAction" name="authenticateUser"&gt;
      &lt;result name="success" type="redirect"&gt;index&lt;/result&gt;
      &lt;result name="input"&gt;/login.jsp&lt;/result&gt;
      &lt;result name="error"&gt;/login.jsp&lt;/result&gt;
  &lt;/action&gt;
  &lt;/package&gt;
  </code></pre>
  
  <h2>login.jsp</h2>
  
  <pre><code>&lt;s:form action="secure/authenticateUser" method="post"&gt;
  
  &lt;/s:form&gt;
  </code></pre>
  
  <p>========================</p>
  
  <p>At first request it works.</p>
  
  <p>but if <code>validate()</code> method of action returns errors then it creates url as:</p>
  
  <p>"secure/secure/authenticateUser" for the Form action attribute.</p>
  
  <p>I also tried <code>&lt;s:url&gt;</code> tag but still same problem can anybody help me.
  or may provide alternate solution for this.</p>