使用 JSR 286serveResource() 进行 http PUT 和 DELETE
我正在发出类型为“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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.