How to get data in the servlet send via dojo.xhrPost
Posted
by snell
on Stack Overflow
See other posts from Stack Overflow
or by snell
Published on 2010-06-13T06:32:00Z
Indexed on
2010/06/13
6:42 UTC
Read the original article
Hit count: 214
> var xhrArgs = {
> url: '/mum/proxy/http/localhost:8080/DemoProject/MyServlet',
> postData:' MyDataToBeSend',
> handleAs: 'text',
> load: function(data) { },
> error: function(error) {alert(error);}}; var ret =
> dojo.xhrGet(xhrArgs);
Hi All,
I have written the above code in Javascript to send data to a servlet. But I am not understanding how to get the postData in the servlet.
© Stack Overflow or respective owner