Posting data to POST.jsp
Hi Team,
I am trying to post table data from my form to the POST.jsp using the following approach.
$.ajax({
type: 'POST',
url: '/url to the component's node/Organization.POST.jsp',
data: {
'orgName': orgName,
'orgPhNum': orgPhNum,
'orgProgram': orgProgram,
'orgAddress': orgAddress,
'orgCity': orgCity,
'orgState': orgState,
'orgZipCode': orgZipCode,
'datePicker': datePicker,
'problemReproducible': problemReproducible,
'locations': locationArr,
'people': peopleArr,
'fileDetails': fileArr
},
success: function(data) {
//alert(data);
},
failure: function(data) {
//alert("failed");
}
});
});
I was able to get all the data in Servlet for a different case following the same approach .Not sure what path to give to make it work for POST.jsp as well
