2

如果至少一个 portlet 失败,我正在尝试在 Liferay 门户中设置自定义错误页面。

门户总是转发到portlet_error.jsp并在 portlet 位置显示一个红色区域。

如何设置重定向或转发到填充完整页面布局的页面?

问候

4

2 回答 2

0

在您的 JSP 中,您可以重定向到 Liferay 中的一个页面,该页面可以只有一个 portlet 或您想要的方式。

或者编写您自己的 servlet,如果发生错误,它会重定向到 liferay 中的页面而不是 JSP

于 2010-07-15T12:45:56.407 回答
-1

If the response is 404 then you can use this property in portal-ext.properties for add your custom page layout.friendly.url.page.not.found=/html/portal/page_not_found.html

于 2012-10-15T08:26:53.297 回答