title: Struts 2.2.3 dojo form submit
body: <p>I'm trying to implement a form submission using ajax in struts 2.2.3.
  I imported dojo plugin library to ma project and this is how my jsp looks like.</p>
  
  <pre><code>&lt;%@ taglib prefix="s" uri="/struts-tags"%&gt;
  &lt;%@ taglib prefix="sx" uri="/struts-dojo-tags"%&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
      &lt;sx:head/&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="container" id="container"&gt;
  &lt;jsp:include page="menu.jsp" /&gt;
  &lt;s:actionerror/&gt;
      &lt;s:form action="Login" method="post"&gt;
           &lt;s:textfield name="username" label="User Name"/&gt;
           &lt;s:password name="password" label="Password"/&gt;
           &lt;s:submit type="submit" align="right" /&gt;
      &lt;/s:form&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I know there is nothing using "sx" here. Right now the jsp works fine with refreshing the page. I want data to be sent using ajax (without refreshing the page). What should i modified to achieve that? It would be really helpful if anyone can provide me a link to an example or a tutorial which shows struts2 with ajax FORM SUBMIT.</p>