フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
abc abc
How to redirect user request to another webapp postlogin to liferay
2013/05/07 3:49
答え

abc abc

ランク: New Member

投稿: 12

参加年月日: 2010/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?
Tejas patel
RE: How to redirect user request to another webapp postlogin to liferay
2013/05/07 4:39
答え

Tejas patel

ランク: Junior Member

投稿: 71

参加年月日: 2012/01/23

最近の投稿

HI,
Is both web-application run on same server?
abc abc
RE: How to redirect user request to another webapp postlogin to liferay
2013/05/07 4:58
答え

abc abc

ランク: New Member

投稿: 12

参加年月日: 2010/06/22

最近の投稿

Thanks for the response Tejas.
Both are not running in the same server