Liferay Portal 6.0 を使用しています。バージョン。ユーザーが要求するたびに新しいコミュニティにリダイレクトするためのフック プラグインを作成しています。次のように ServicePreAction の run メソッドをオーバーライドしました。
protected void doRun(HttpServletRequest request, HttpServletResponse response)
throws Exception {
ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(
WebKeys.THEME_DISPLAY);
if(some condition) {
response.sendRedirect("/web/mycommunity/home");
}
}
しかし、「リダイレクトが多すぎます」というエラーが表示されます。解決策はありますか?