Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在html上发送应用程序/x-www-form-urlencoded列表_Html_List_Post_Jersey - Fatal编程技术网

在html上发送应用程序/x-www-form-urlencoded列表

在html上发送应用程序/x-www-form-urlencoded列表,html,list,post,jersey,Html,List,Post,Jersey,我需要向用Java编写并使用Jersey的RESTful服务发送HTTP Post请求。 我处理请求的java函数如下所示: @POST @Consumes("application/x-www-form-urlencoded") public Response update(@FormParam("items") List<String> items) { ... } @POST @使用(“应用程序/x-www-form-urlencoded”) 公共响应更新(@FormP

我需要向用Java编写并使用Jersey的RESTful服务发送HTTP Post请求。 我处理请求的java函数如下所示:

@POST
@Consumes("application/x-www-form-urlencoded")
public Response update(@FormParam("items") List<String> items) {

 ...

}
@POST
@使用(“应用程序/x-www-form-urlencoded”)
公共响应更新(@FormParam(“项”)列表项){
...
}
如何在html上创建并发送请求,以便将它们作为字符串对象列表传递给我的函数