为什么 JSF 比 Struts 更适合 Portlet 开发?

发布于 2024-09-01 20:51:45 字数 209 浏览 2 评论 0原文

有人对我说,JSF 更擅长在上下文中共享信息,但 Struts 1.1 却不能。

在 JSR168 中,如果我们需要开发 Portlet,那么在上下文中共享信息至关重要。因此,JSF 似乎是更好的选择。

我的问题是什么是在上下文中共享信息

这是否意味着部署在同一容器中的不同应用程序可以共享数据?

或者还有什么其他手段?

Someone said to me that JSF is better at sharing information within the context, but Struts 1.1 can't.

In JSR168, If we need to develop a Portlet then sharing information in the context is critical. Therefore,JSF seems to be the better option.

My question is what is sharing information within context?

Does that mean that different application deployed in the same container can share date?

Or what other means?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

清眉祭 2024-09-08 20:51:45

我不确定是否能满足您的问题,但据我了解,如果范围定义明确,您可以使用 BackingBeans 来共享信息。当然,您还可以使用 FacesContext 来交换信息。

I'm not sure to meet your question, but in my understanding you can use the BackingBeans to share information, if the scope is well-defined. And of course you've got the FacesContext to exchange information.

葵雨 2024-09-08 20:51:45

据我所知,在 portlet 中 FacesContext 将能够在 portlet 应用程序内共享信息,而不是在 portlet 应用程序之间共享信息。
要在不同的 portlet 应用程序之间共享数据,您可以使用一些其他技术,例如
ibm Portal 中的 dynacache 或任何门户特定技术。

As far as i know, in portlet FacesContext will be able to share information within a portlet application and not between portlet application.
to share data between different portlet application, you have use some other techniques like
dynacache in ibm portal or any portal specific technology.

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