Problem with jQuery Form plugin: no submission

Problem with jQuery Form plugin: no submission

Hello,

i have downloaded this plugin and wached many examples on internet to use it. So there is something i have missed because when i use it, my server doesnt receive the submission form.

I have a .jsp like that:

  1. <form:form id="form1" action="annotationajaxform.jsp"
            commandName="annotation">

        <tr>
            <td><form:input path="id" id="id" size="3"/></td>
            <td><c:out value="${annotation.annotationType.name}"/></td>
            <td><form:input path="value" id="value" size="10"/></td>
            <td><input type="button" id="saveAnnot" name="saveAnnot" value="
                     <fmt:message key="button.save"/>" onclick="saveAnnotation()"/></td>
        </tr>   
           
        </form:form>










And i have a file.js:

  1. function saveAnnotation(){
        $j("#form1").ajaxSubmit(); 
So i know that the function is called (checked with an alert). But my server page (a controller from Spring MVC) dont do anything, in fact this method do nothing with.

I must have missed something but i don't know what.
Can you help me?

Thanks a lot