JSR168 Portlet 奇怪页面过期

发布于 2024-07-26 02:05:35 字数 621 浏览 2 评论 0原文

我遇到了一个奇怪的问题,并且调试失败。

我的任务是编写一个符合 JSR168 的 portlet 来搜索数据库。 当您打开该 portlet 时,您会看到 6 个不同条件的搜索框,可以搜索数千条记录。 一旦您按下搜索,它就会显示另一个页面(它保留第一页并使用 作为第二页,以便用户可以查看/更改他们的搜索词)和搜索结果。 在搜索结果页面中,用户可以单击其中一个结果(重定向到新页面)并获取有关该结果的更多详细信息。

所有这些都有效。 问题是当用户想要再次搜索时。

当我开发这个时,我使用了安装在本地计算机上的 LifeRay。 一切在 IE、Firefox 和 Chrome 中都能完美运行。 然而,当我将它部署到我们的开发门户 (IBM WebSphere) 时,它在 IE 中不太工作。 在 Firefox/Chrome 中,当用户位于详细信息页面时,他们可以返回浏览器,它会加载搜索结果的缓存版本。 完美,因为此内容很少更改。

但是,在 IE 中,当他们单击详细视图上的后退按钮时,我们会收到“网页已过期消息”。 我已经尝试了 portlet 和页面的门户设置中的每个缓存设置,但没有任何运气。

有人有主意吗?

I'm having a strange problem and no luck debugging.

I was tasked with writing a JSR168 compliant portlet to search a database. When you open the portlet, you're given 6 search boxes for different criteria to search several thousand records. Once you press search, it brings up another page (it keeps the first page and uses <jsp: include> for the second page so users can see/change their search terms) with the search results. From the search results page, the user can click on one of the results (which redirects to a new page) and get more detailed information about it.

All of that works. The problem is when the user wants to search again.

When I developed this, I used LifeRay installed on my local machine. Everything works perfectly in IE, Firefox, and Chrome. However, when I deploy it to our development portal (IBM WebSphere), it doesn't quite work in IE. In Firefox/Chrome, when a user is on the detailed information page, they can hit back on their browser and it loads a cached version of the search results. Perfect, because this content rarely changes.

However, in IE, when they click the back button on the detailed view, we get a "Webpage has expired message". I've tried every caching setting in the portal settings for the portlet as well as the page, but haven't had any luck.

Anyone have any ideas?

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

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

发布评论

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

评论(2

孤凫 2024-08-02 02:05:35

门户级别也有设置。
查看以下链接
http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.ent.doc/wps/adbakbut.html

您可以尝试根据您的 portlet 的要求调整其中一些参数

There are settings at the portal level too.
Check out following link
http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.ent.doc/wps/adbakbut.html

You could try tweeking some of these paramters as required by your portlets

哥,最终变帅啦 2024-08-02 02:05:35

IE 中的“网页已过期”消息表明您执行了 POST。 您可以尝试使用 GET,这在“后退”命令上不应出现此问题。

您应该在开发人员机器上安装 WebSphere Portal 并在本地进行测试,然后再进入另一个环境。

The "Webpage has expired message" in IE indicates that you did a POST. You could try using a GET, which should not have this problem on "back" command.

You should install WebSphere Portal on your developer machine and test locally before going to another environment.

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