javascript - How to send parameter to a servlet using Ajax Call -


i have controller in extjs application ,from have make ajax call servlet , have send parameters servlet also.i able call servlet getting null values.i think making mistake in sending parameters.... code ...

databasecall: function(bardata){     ext.ajax.request({         url: "callratiosanalysis",         method:'post',         param:{             source:bardata         },         success: function(response, opts){             //do want response here             console.log("hiiiiiiiiiiii");         },         failure: function(response, opts) {             alert("server-side failure status code " + response.status);         }      }); } 

i have send bardata callratiosanalysis servlet. getting null values in callratiosanalysis servlet .somebody please help.

here answer jeet.. work fine... replace line....

url: "callratiosanalysis?param="+source+"&param1="+count, 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -