0
我想從自動登錄類生成特定故障的錯誤頁面並重定向到相同的頁面。重定向到自動登錄的Liferay中的錯誤頁面
request.setAttribute(AutoLogin.AUTO_LOGIN_REDIRECT, internalErrorPage);
我想知道我怎麼能在Liferay的創建internalErrorPage JSP頁面什麼?
我想從自動登錄類生成特定故障的錯誤頁面並重定向到相同的頁面。重定向到自動登錄的Liferay中的錯誤頁面
request.setAttribute(AutoLogin.AUTO_LOGIN_REDIRECT, internalErrorPage);
我想知道我怎麼能在Liferay的創建internalErrorPage JSP頁面什麼?
您可以創建一個portlet,然後重定向到您在portlet創建JSP的網址:
request.setAttribute(AutoLogin.AUTO_LOGIN_REDIRECT, "http://www.yourhost.com/somerrorpage.html");
return null;
商祺! :)
謝謝,但我不明白你的答案。我只需要創建一個JSP或HTML頁面並從重定向調用。所以我需要知道我在哪裏創建這個jsp頁面或html頁面,以及我如何調用(路徑)。 – spectre007