i have a controller in my ExtJs application ,from where i have to make an Ajax call to a servlet and also have to send some parameters to that servlet also.i am able to call the servlet properly but i am getting null values.i think i am making mistake in sending parameters.... this is my code ...
dataBaseCall: function(barData){
Ext.Ajax.request({
url: "CallRatiosAnalysis",
method:'POST',
param:{
source:barData
},
success: function(response, opts){
//do what you want with the response here
console.log("hiiiiiiiiiiii");
},
failure: function(response, opts) {
alert("server-side failure with status code " + response.status);
}
});
}
i have to send barData to the CallRatiosAnalysis servlet. but i am getting null values in the CallRatiosAnalysis servlet .somebody please help.
这是您的答案jeet ..它将正常工作...只需替换此行即可。
url: "CallRatiosAnalysis?param="+source+"¶m1="+count,
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.