掲示板

How to redirect from a Render Filter

13年前 に Jose Camallonga によって更新されました。

How to redirect from a Render Filter

New Member 投稿: 2 参加年月日: 10/06/02 最新の投稿
Hi everybody,

I am doing a filter with a render and an action to check if a user is logged in.

When it's calling and action I can redirect him to the home page if it's not logged in with the method actionResponse.sendRedirect(...) but when it's calling a render I don't know how to do it.

Any ideas? emoticon


Thanks!


Jose
thumbnail
11年前 に Pilar Hidalgo によって更新されました。

RE: How to redirect from a Render Filter

New Member 投稿: 14 参加年月日: 12/04/10 最新の投稿
Hi, did you solve it?

I have the same problem. I have two portlets, and I passed parameters from portletA to portletB but, when I want to redirect to portletB to see results I dont know how... because the render in the portletA dont have a redirect method
.¿Anyone help me?
thumbnail
11年前 に Mika Koivisto によって更新されました。

RE: How to redirect from a Render Filter

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
You can't send redirect from render phase. At the time your portlet is rendered there might already be content committed to the output stream by other portlets that's why the spec doesn't allow it. When action phase is execute it only targets it to one portlet and that's why you can do redirect from there.