form-parameter

REST @FormParam is null

孤人 提交于 2019-12-08 07:47:02
问题 I have the following being passed from browser to server Status Code:204 No Content Request Method:POST Content-Type:application/x-www-form-urlencoded Form Data json:{"clientName":"PACK","status":"success","message":"successful!"} and in jsp code var loginData = { clientName: cList, status: "success", message: "successful!" }; $.ajax({ url: subUrl, type: 'POST', contentType : "application/x-www-form-urlencoded", data: { json: JSON.stringify(loginData) }, success: function (data) {

REST @FormParam is null

橙三吉。 提交于 2019-12-07 02:36:27
I have the following being passed from browser to server Status Code:204 No Content Request Method:POST Content-Type:application/x-www-form-urlencoded Form Data json:{"clientName":"PACK","status":"success","message":"successful!"} and in jsp code var loginData = { clientName: cList, status: "success", message: "successful!" }; $.ajax({ url: subUrl, type: 'POST', contentType : "application/x-www-form-urlencoded", data: { json: JSON.stringify(loginData) }, success: function (data) { handleLoginResult(data); } }); And in Java code I have @POST public Object persistResetPasswordLogs(@FormParam(

HTTP 400 error in REST web service during POST with FormParam containing own objects (e.g. enities)

徘徊边缘 提交于 2019-12-01 06:48:24
For an ordering process in my REST service I have to send a list of "articles" from client to server. These article objects are of a self-made entity type. I already found out that sending a list of STRING or INTEGER objects does work, sending it via @FormParam. But as soon as I try to send a list of my own objects (even only ONE object), I always get a HTTP 400 error "Bad Request" . I tried excatly the same code like below (only the parameters of form.add() and the parameters of the server method were altered) and postet Strings, Integers and lists of Strings successfully. It only makes

HTTP 400 error in REST web service during POST with FormParam containing own objects (e.g. enities)

徘徊边缘 提交于 2019-12-01 05:20:32
问题 For an ordering process in my REST service I have to send a list of "articles" from client to server. These article objects are of a self-made entity type. I already found out that sending a list of STRING or INTEGER objects does work, sending it via @FormParam. But as soon as I try to send a list of my own objects (even only ONE object), I always get a HTTP 400 error "Bad Request" . I tried excatly the same code like below (only the parameters of form.add() and the parameters of the server

How to retrieve FORM/POST Parameters in Spring Controller?

倾然丶 夕夏残阳落幕 提交于 2019-11-30 14:52:19
I have the following response that should come from a MailChimp webhook URL. This is the row BODY: RAW BODY type=usub&fired_at=2015-07-23+17%3A19%3A34&data%5Baction%5D=unsub&data%5Breason%5D=manual&data%5Bid%5D=9383uy636&data%5Bemail%5D=youremail%40YOURDOMAIN.com&data%5Bemail_type%5D=html&data%5Bip_opt%5D=202.9.3.003&data%5Bweb_id%5D=404004&data%5Bmerges%5D%5BEMAIL%5D=YOUREMAIL%40YOURDOMAIN.com&data%5Bmerges%5D%5BFNAME%5D=NAME&data%5Bmerges%5D%5BLNAME%5D=LASTNAME&data%5Blist_id%5D=2288883 FORM/POST PARAMETERS fired_at: 2015-07-22 12:19:34 data[email]: YOUREMAIL@DOMAINNAME.com data[id]:

How to retrieve FORM/POST Parameters in Spring Controller?

天涯浪子 提交于 2019-11-29 21:28:03
问题 I have the following response that should come from a MailChimp webhook URL. This is the row BODY: RAW BODY type=usub&fired_at=2015-07-23+17%3A19%3A34&data%5Baction%5D=unsub&data%5Breason%5D=manual&data%5Bid%5D=9383uy636&data%5Bemail%5D=youremail%40YOURDOMAIN.com&data%5Bemail_type%5D=html&data%5Bip_opt%5D=202.9.3.003&data%5Bweb_id%5D=404004&data%5Bmerges%5D%5BEMAIL%5D=YOUREMAIL%40YOURDOMAIN.com&data%5Bmerges%5D%5BFNAME%5D=NAME&data%5Bmerges%5D%5BLNAME%5D=LASTNAME&data%5Blist_id%5D=2288883