Hi ,
I'm trying to send a "multipart/form-data" of POST method from xsjs and in turn calls Java method .
xsjs
var request = new $.web.WebRequest($.net.http.POST,"/entity");
request.headers.set("Content-Type","multipart/form-data");
request.setBody(contents);
But in java when I do ,
Collection <Part> Parts = request.getParts();
it returns null , whereas when I do :
InputStream is =request.getInputStream();
it returns proper value . I want my data to be in Parts. What should I do ?