Portlet URL 附加会话 ID?
我遇到了一个问题,不知道这是否可能,我正在尝试做什么:我只想将我的会话 ID 附加到我的门户中生成的所有 URL 中?
我正在使用 JSR-268 Portlet 并尝试定义一个公共渲染参数 - 如果我没记错的话,这应该 - 一旦设置 - 可用于支持此参数的所有其他 Portlet。遗憾的是事实并非如此。还是我错了?
I'm facing a problem and don't know if it is even possible, what I'm trying to do: I just want to append my session ID to all my URLs which are generated in my portal?
I'm using JSR-268 Portlets and tried to define a public-render-parameter - if I'm not wrong, this should be - once set - available to all other portlets which support this parameter. Sadly it isn't that case. Or am I wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 Portlet 2.0 规范:
这表明您是正确的(尽管参数是否在浏览器 URL 中实际可见将是实现细节)。我将重新检查您的
portlet.xml
设置以及您如何根据 规范。(我不确定您为什么要传递会话 ID,但这是另一回事。)
From the Portlet 2.0 specification:
This suggests that you are correct (though whether the parameter is actually visible in the browser URL would be implementation detail). I would recheck your
portlet.xml
settings and how you set/get the parameters against the details listed in PLT.11.1.2 Public Render Parameters of the spec.(I'm not sure why you would want to pass around your session ID, but that is another matter.)