将自定义属性添加到 portlet 中的每个 HTTP 标头
我无法将标记添加
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
到 jboss-portlet.xml 中配置的
的
部分> 文件,因为 JBoss 不支持 标签。
我现在想要添加
X-UA-Compatible: IE=EmulateIE7
到此 portlet 上的每个 HTTP 标头。这有可能吗?
有关X-UA-Compatible
的详细信息,请参阅http://blogs.msdn.com/b/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx。 我正在使用 JBoss 4.2.3.GA。
I can't add the tag
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
to the <header-content>
section in my <portlet>
configured in the jboss-portlet.xml file because <meta>
tags are not supported by JBoss.
I now want to add
X-UA-Compatible: IE=EmulateIE7
to every HTTP header on this portlet. Is this somehow possible?
For more information on X-UA-Compatible
see http://blogs.msdn.com/b/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx.
I'm using JBoss 4.2.3.GA.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有
nofollow">doHeaders(...) 方法,当我在
portlet.xml
中 (请参阅 此处了解更多详细信息)。但不幸的是,我在那里设置的所有属性在发送给客户端的途中都丢失了。
There is the doHeaders(...) method that get's invoked when I set
in my
portlet.xml
(see here for more details).But unfortunately all the properties I set there are somewhere lost on the way to the client.