I want to pass data from jsp file to droplet using ajax.
function myNotification(productId,skuId,product) {
if (confirm('Are you sure?')) {
$.ajax({
type : "POST",
url : "merchant_popup.jsp",
data : {
productId:""+productId+"",
skuId : "" + skuId + "",
product : "" + product + "",
},
success : function(result) {
if(result.trim() == "OK"){
alert("Email send successfully");
} else {
alert("Error");
}
}//
});
}else{
}
}
Then I use below droplet to catch data within merchant_popup.jsp
merchant_popup.jsp
<dsp:droplet name="EmailNotification">
<dsp:param name="productId" param="productId" />
<dsp:param name="skuId" param="skuId" />
<dsp:param name="product" param="product" />
</dsp:droplet>
But function is not success. Can any one help me.