jquery - How to use ajax to pass parameters to servlet -


i'm using below code in servlet parameters jsp page form.how use ajax/jquery pass parameters servlet.

map<string, string[]> params = request.getparametermap(); 

$.ajax({   type: "post",   url: "http://myhost/my-servlet-mapping-url",   data: {"param1":"value1"},   success: function(data, textstatus, jqxhr) {     console.log("success!!");   },   datatype: datatype }); 

it's regular way. problem?

you've got nulls?


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -