There are two ways for spring:
a) specify the hidden form field myparamin your form and use jquery to fill it abcin before submitting.
b) use jquery ajax to call ajax post, and before that set the data parameter.
$.ajax({
type: "POST",
url: url,
data: data,
success: success,
dataType: dataType
});
source
share