When I try to retrieve my verifyCodeActual
parameter on the server, the result is null
.
String code = request.getParameter("verifyCodeActual"); // This is null
But I'm posting this parameter in the body as you can see in the chrome console data :
the chrome console (data form)
Here is the relevant part of the server-side java code:
Relevant part of the server-side java code
Here is the JS ajax query:
var formData = new FormData();
var verifyCodeActual = $('#j_captcha').val();
formData.append("verifyCodeActual", verifyCodeActual);
$.ajax({
url : (isEdit ? editShopUrl : registerShopUrl),
type : 'POST',
data : formData,
contentType: "application/x-www-form-urlencoded",
cache: false,
processData: false,
success ...
}
});