掲示板

How to redirect user request to another webapp postlogin to liferay

10年前 に abc abc によって更新されました。

How to redirect user request to another webapp postlogin to liferay

New Member 投稿: 12 参加年月日: 10/06/22 最新の投稿
Hi,
We have a requirement in our web-application environment like
We need to get the user logged-in to liferay and redirect the request to another web-application which is deployed in Jboss, to display user home/default landing page.
For example:
I need to get the user logged into http://myliferayapp.com/web/guest/home

redirect the request after successful login to http://myanotherapp.com/context/mycontroller?action_id=1

To achieve this i have added a login post event called CustomLoginPostAction.java in the liferay extension.

added response.sendRedirect("http://myanotherapp.com/context/mycontroller?action_id=1"); in the run() of my CustomLoginPostAction.java,but it couldn't resolved the issue and throws NullPointerException in PortalRequestProccessor.java.

Can anyone help me to understand how could i achieve this requirement?
thumbnail
10年前 に Tejas patel によって更新されました。

RE: How to redirect user request to another webapp postlogin to liferay

Junior Member 投稿: 71 参加年月日: 12/01/24 最新の投稿
HI,
Is both web-application run on same server?
10年前 に abc abc によって更新されました。

RE: How to redirect user request to another webapp postlogin to liferay

New Member 投稿: 12 参加年月日: 10/06/22 最新の投稿
Thanks for the response Tejas.
Both are not running in the same server