javascript server issue
<p>Onchage of selection i am calling a javascript to make a server call using struts1.2 but its not making a call.Please let me know where i am going wrong,below is the code</p>

<pre><code>&lt;html:form action="/populate"&gt;
&lt;html:select property="tName" onchange="test()"&gt;"&gt;
                &lt;html:option value=""&gt;SELECT&lt;/html:option&gt;

               &lt;html:options name="tList" /&gt;

   &lt;/html:select&gt;
&lt;/html:form&gt;
</code></pre>

<p>and stuts-config has</p>

<pre><code> &lt;action path="/populate" name="tForm" type="com.testAction" validate="false" parameter="method"            
            scope="request" &gt;
            &lt;forward name="success" path="/failure.jsp" /&gt;  
        &lt;/action&gt;
</code></pre>

<p>and javascript is</p>

<pre><code>function test(){

    var selObj = document.getElementById("tName");
    var selIndex = selObj.selectedIndex;

    if (selIndex != 0)
    {
    document.form[0].selIndex.action="/populate.do?method=execute&amp;testing="+selIndex;
    document.form[0].submit();
    }
}
</code></pre>
