使用 JSR 286serveResource() 进行 http PUT 和 DELETE

发布于 2024-12-23 18:14:44 字数 168 浏览 6 评论 0原文

我正在发出类型为“DELETE”的 ajax 请求,但不知何故该请求没有进入 ServeResources(request,response) 方法(从 GenericPortlet 类覆盖)。

有谁知道为什么“删除”和“放置”不适用于门户应用程序(JSR 286)以及如何摆脱它?

谢谢,

I'm making a ajax request with type:'DELETE' but somehow the request is not going inside the ServeResources(request,response) method (overridden from GenericPortlet class).

does anyone has an idea that why "Delete" and "Put" are not working with portal application(JSR 286) and How to get rid of that?

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

硪扪都還晓 2024-12-30 18:14:44

HTTP PUT/DELETE 是一些受保护的方法,大多数 Web/应用程序服务器默认禁用这些方法,这可能是您在服务器端看不到请求的原因。 AFAIK 它独立于门户环境并由 Web/应用程序服务器处理。您需要在服务器上进行一些配置更改。

HTTP PUT/DELETE are some what protected methods, most of the web/application servers disable these methods by default, that could be the reason why you are not seeing your requests on server side. AFAIK it is independent of portal environment and handled by web/application server. You need to do some configuration changes on your server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文