title: How to get result on same page why input is required?
body: <p>In my project I am updating details so I created action, but it gives me exception in response as</p>
  
  <pre><code>No result defined for action org.employee.actions.EmployeeMyProfileAction and result input
  </code></pre>
  
  <p>In <code>struts.xml</code> (Before)</p>
  
  <pre><code>&lt;action name="savePersonalDetails"  class="org.employee.actions.EmployeeMyProfileAction" method="updateEmployeeDetails"&gt;
          &lt;result name="success"&gt;empMyProfile.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>(After)</p>
  
  <pre><code>&lt;action name="savePersonalDetails" class="org.employee.actions.EmployeeMyProfileAction" method="updateEmployeeDetails"&gt;
      &lt;result name="success"&gt;empMyProfile.jsp&lt;/result&gt;
      &lt;result name="input"&gt;emp-personal-form.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>Ajax Call</p>
  
  <pre><code>function checkPersonal(id) {
  
      if (checkEverythingP()) {
          $.ajax({
              type : 'POST',
              url : 'savePersonalDetails',
              data : $('#personalform').serialize(),
              success : function(data) {
                  alert('success');
              },
              error : function() {
                  alert('error');
              }
          });
      }
  }
  </code></pre>
  
  <p>It gives me success message in JQuery but It is not going to the action class declared. I didn't understand why it is happening after everything is correct. I referred many sites for this but not resolved. Please suggest me what is going wrong.</p>