What does this jquery + struts construct do? : I am dealing with JQuery code as follows:

    function formSubmit(){
	    $('#myform').attr('action', "./myFilter.action");
	    $('#myform').submit();
    }

The form:

    <s:form name="myform" action="myAction"	id="myform">
    </s:form>

Noticing that myFilter.action is called before myAction. But I don't understand how or why that is happening. Can someone explain?

Thanks
