JQuery $.ajax() post - data in a java servlet

后端 未结 4 1262
面向向阳花
面向向阳花 2020-12-02 17:11

I want to send data to a java servlet for processing. The data will have a variable length and be in key/value pairs:

{ A1984 : 1, A9873 : 5, A1674 : 2, A87         


        
4条回答
  •  执笔经年
    2020-12-02 17:25

    To get the value from the servlet from POST command, you can follow the approach as explained on this post by using request.getParameter(key) format which will return the value you want.

提交回复
热议问题