将自定义属性添加到 portlet 中的每个 HTTP 标头

发布于 2024-12-15 20:55:08 字数 646 浏览 4 评论 0原文

我无法将标记添加

<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 技术交流群。

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

发布评论

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

评论(1

意中人 2024-12-22 20:55:08

<container-runtime-option>
    <name>javax.portlet.renderHeaders</name>
    <value>true</value>
</container-runtime-option>

nofollow">doHeaders(...) 方法,当我在 portlet.xml 中 (请参阅 此处了解更多详细信息)。

但不幸的是,我在那里设置的所有属性在发送给客户端的途中都丢失了。

There is the doHeaders(...) method that get's invoked when I set

<container-runtime-option>
    <name>javax.portlet.renderHeaders</name>
    <value>true</value>
</container-runtime-option>

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.

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