java - Portletfilter 更改区域设置?

标签 java filter portlet portal

ServletResponse 提供了 setLocale() 方法来修改尚未提交的响应的区域设置。 PortletResponse 不提供这样的方法,仅提供 getLocale() - 还有其他方法可以更改 portlet 请求/响应的区域设置吗?

最佳答案

没有。这在 portlet 中没有意义 - 它们只是聚合响应的一个组成部分。

Portlet 2.0 规范 (JSR 286) 证实了这一点:

The portlet cannot set the character encoding or the locale of the response as these are pre-set by the portal / portlet container.

关于java - Portletfilter 更改区域设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1812132/

相关文章:

opencv - 在 HSV 颜色空间中定义黑色区域

java - 关闭liferay portlet中的jdbc资源

javascript - Portlet 中的YUI 版本冲突问题

java.lang.NoClassDefFoundError : android. support.v7.mediarouter.R$string

java - 为什么 java.util.Map 值可以是原始数组而不是单个原始值

java - 对于受 OAuth 2 保护的 Spring Boot REST API,如何在将请求转发到方法之前拦截访问 token ?

java - 从java程序运行jar文件

filter - 使用日期选择器范围作为 MDX 查询中的筛选器

消息正文上的 Azure 服务总线订阅筛选器

jboss - 没有 JNDI 的 JMS?