title: sj:submit with targets and errorElementId not rendering properly
body: <p>I have a struts application, In one of the pages I am using <code>sj:submit</code> to submit the page with targets and <code>errorElementId</code> attributes.I have used the Struts2 validations on the page and the result type are written so that the success will redirect to a div and the failure will redirect the action to the same div, using <code>errorElementId</code> like the following</p>
  
  <pre><code>&lt;div id="errorDiv" &gt;
  &lt;sj:submit targets="successDiv" errorElementDiv="errorDiv" /&gt;
  &lt;/div&gt;
  &lt;div id="successDiv"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>On testing this page I am getting the success response to the successDiv as given in the targets attribute, but in case of validation errors I am expecting the page to return to the same div where the sj belongs ie the errorDiv , but then also the the page with validation errors are rendered in the successDiv like the following</p>
  
  <p><img src="https://i.stack.imgur.com/eHSn7.png" alt="enter image description here"></p>
  
  <p>the result types for the action are the following </p>
  
  <pre><code>&lt;result name="success"&gt;jsp/process/processlist.jsp&lt;/result&gt;
              &lt;result name="input"&gt;jsp/process/addprocess.jsp&lt;/result&gt;
  </code></pre>
  
  <p>Can somebody tell me where I am going wrong.</p>