I am new to Spring MVC. I have a form like this,
and a co
your ModelAttributes are not populated as you are not passing any params to server.Form data has to be posted to server
$.post('myaction.htm', $('#formid').serialize())
to send ajax post request.
You need to post the data. The way I typically do it is using the following.
var str = $("#myForm").serialize();
$.ajax({
type:"post",
data:str,
url:"/myaction.htm",
async: false,
dataType: "json",
success: function(){
alert("success");
}
});