Portletfilter 更改区域设置?
ServletResponse 提供了 setLocale() 方法来修改尚未提交的响应的区域设置。 PortletResponse 不提供这样的方法,仅提供 getLocale() - 还有其他方法可以更改 portlet 请求/响应的区域设置吗?
the ServletResponse provides a setLocale() method to modify the locale of a response which is not commited yet. The PortletResponse doesn't provide such a method, only getLocale() - is there any other way to change the locale of a portlet request/response?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不。这在 portlet 中没有意义 - 它们只是聚合响应的一个组成部分。
Portlet 2.0 规范 (JSR 286) 证实了这一点:
No. This would not be meaningful in portlets - they are only a component of an aggregate response.
The Portlet 2.0 spec (JSR 286) confirms this: