【问题标题】:Getting portlet scope prefix获取 portlet 范围前缀
【发布时间】:2014-01-15 04:14:16
【问题描述】:

我的 port let 应用程序 (JSR-168) 包含 2 个 portlet。每个 Portlet 都有自己的 Portlet 范围。例如,当我打印会话变量时:

[15.01.14 9:57:51:728 YEKT] 000000f2 SystemOut     O javax.portlet.p.Z7_4PT0G7H2006770A072T1VN3047?ChannelListForm : form.ChannelListForm@4589069
[15.01.14 9:57:51:728 YEKT] 000000f2 SystemOut     O javax.portlet.p.Z7_4PT0G7H2006770A072T1VN30O1?KhlScheduleList : beans.list.KhlScheduleList@5ff9df2d

如何在我的 jsp 中获取 Portlet Scope 前缀或在 Portlet Preferences 中设置此前缀?

【问题讨论】:

    标签: portlet websphere-7 websphere-portal


    【解决方案1】:

    我以前没有使用过 JSR-168 portlet,但您可以使用 <portlet:namespace> JSP 标记。这将为您提供一个字符串,该字符串具有 portlet ID(也就是您的 portlet 范围前缀),后跟一个“_”。

    【讨论】:

      猜你喜欢
      • 2011-09-11
      • 1970-01-01
      • 1970-01-01
      • 2012-07-07
      • 2011-02-23
      • 1970-01-01
      • 2016-10-18
      • 2012-04-22
      • 2016-11-25
      相关资源
      最近更新 更多