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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -