Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/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
HTTP放入Java servlet_Java_Http - Fatal编程技术网

HTTP放入Java servlet

HTTP放入Java servlet,java,http,Java,Http,我想使用JavaSevelets和jsp进行一些REST风格的录制。我已经在servlet中实现了doPUT,但是当我使用httpput发送Ajax请求时,会出现以下错误 type Status report message HTTP method PUT is not supported by this URL description The specified HTTP method is not allowed for the requested resource (HTTP meth

我想使用JavaSevelets和jsp进行一些REST风格的录制。我已经在servlet中实现了doPUT,但是当我使用httpput发送Ajax请求时,会出现以下错误

type Status report

message HTTP method PUT is not supported by this URL

description The specified HTTP method is not allowed for the requested resource (HTTP method PUT is not supported by this URL).

任何解决方案请

您确定使用的是JSDK 2.0吗


您可能需要显示一小段给出该错误的示例代码,这样人们至少可以阅读并运行它。