Struts ajax 404 error
<p>structs.xml file</p>

<pre><code>&lt;package name="admin" extends="struts-default" namespace="/admin"&gt;
&lt;!-- Add Login Functionality --&gt;
&lt;interceptors&gt;

&lt;interceptor class="AdminLoginController" name="loginStack"&gt;&lt;/interceptor&gt;
&lt;interceptor-stack name="loginStack"&gt;
    &lt;interceptor-ref name="loginStack" /&gt;
&lt;/interceptor-stack&gt;
&lt;/interceptors&gt;
&lt;action name="testing" class="BookingsController" method = "testing"&gt;
    &lt;interceptor-ref name="loginStack"&gt;&lt;/interceptor-ref&gt;
    &lt;interceptor-ref name="defaultStack" /&gt;
    &lt;result type="stream"&gt;
        &lt;param name="contentType"&gt;text/html&lt;/param&gt;
        &lt;param name="inputName"&gt;inputStream&lt;/param&gt;
    &lt;/result&gt;
&lt;/action&gt;
&lt;/package&gt;
</code></pre>

<p>Register.jsp file</p>

<pre><code>function test()
{
    $.ajax({
        type : "Get",
        url : "testing.action",
        success : function(response)
        {
            alert("Success");
        }
    });
}

&lt;button class="button warning" onclick="test()"  id="testApp"&gt;Testing&lt;/button&gt;
</code></pre>

<p>BookingsContoller.java file</p>

<pre><code>public String testing()
{
    try
    {
        return "SUCCESS";
    }
    catch(Exception e)
    {   
         return "error";
    } 
}
</code></pre>

<p>I am new to web development. I am trying to do a ajax call from jsp. But I am getting 404 not found error. I have added the my code snippets for reference. Please help me. Thanks in advance.</p>