Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
abc abc
How to redirect user request to another webapp postlogin to liferay
7 maggio 2013 3.49
Risposta

abc abc

Punteggio: New Member

Messaggi: 12

Data di Iscrizione: 22 giugno 2010

Messaggi recenti

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
7 maggio 2013 4.39
Risposta

Tejas patel

Punteggio: Junior Member

Messaggi: 71

Data di Iscrizione: 23 gennaio 2012

Messaggi recenti

HI,
Is both web-application run on same server?
abc abc
RE: How to redirect user request to another webapp postlogin to liferay
7 maggio 2013 4.58
Risposta

abc abc

Punteggio: New Member

Messaggi: 12

Data di Iscrizione: 22 giugno 2010

Messaggi recenti

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