HttpSession 超时
我有一个 jsf 应用程序,其中有三个框架,一个用于标题,一个用于侧面导航,另一个是主机。我在 spring 框架中构建了它。 我有一个问题,当 HttpSession 对象超时时,应用程序会转发到登录页面(这是正确的,并且是应用程序的起始页面),但在大型机内,所以我有一个嵌套的应用程序。顺便说一句,我正在运行这个在 websphere 中的应用程序中,我可以将 HttpSession 超时变量设置为非常高的值,以便减少此问题的发生,但这不是解决方案。 关于如何解决这个问题的任何想法。
i have a jsf application in which i have three frames,one for the header,one for side navigation and the other is the mainframe.I have built this in the spring framework.
I have a problem that when the HttpSession object gets timed out the apllication gets forwarded to the Login page(which is correct,and is the starting page of the app) but within the mainframe so i have a nested application.btw i am running this app in websphere and i can set the HttpSession timeout variable to a very high value so that this problem will occur less,but this is not a solution.
Any ideas on how i can get around this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iFrame确实是一件坏事!
我建议使用 Facelets 库,它可以让您轻松 创建页面模板。在您的情况下,您将能够创建三个不同的部分(标题、导航侧和主页)。
创建后,结果将是单个 HTML 页面(即没有框架)。
这样,您就不会再遇到问题了。
您有几篇文章解释了 Facelets 的主要功能,包括模板。
iFrames are really a bad thing!
What I suggest is to use the Facelets library, which allow you to easily create templates of pages. In your case, you will be able to create the three differents parts (header, navigation side and main page).
Once created, the result will be a single HTML page (i.e. no frames).
This way, you will not encounter your problem anymore.
You have several articles that explains the main features of Facelets, including the templating.