Getting the result from struts.xml by using javascript
<p>I want to get the result in struts.xml by using javascript or jquery. For example I have these results in my struts.xml,</p>

<pre><code>            &lt;global-results&gt;
        &lt;result name="input"&gt;error.jsp&lt;/result&gt;
        &lt;result name="syserror"&gt;error.jsp&lt;/result&gt;
        &lt;result name="login"&gt;loginError.jsp&lt;/result&gt;
        &lt;result name="error"&gt;error.jsp&lt;/result&gt;
    &lt;/global-results&gt;
</code></pre>

<p>I would like to know how to get the result name using javascript. I need to detect the return of struts.xml .</p>
