如果至少一个 portlet 失败,我正在尝试在 Liferay 门户中设置自定义错误页面。
门户总是转发到portlet_error.jsp
并在 portlet 位置显示一个红色区域。
如何设置重定向或转发到填充完整页面布局的页面?
问候
在您的 JSP 中,您可以重定向到 Liferay 中的一个页面,该页面可以只有一个 portlet 或您想要的方式。
或者编写您自己的 servlet,如果发生错误,它会重定向到 liferay 中的页面而不是 JSP
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