Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Kha N Nguyen
Forward to default landing page from update password page
18 marzo 2010 18.46
Risposta

Kha N Nguyen

Punteggio: Junior Member

Messaggi: 89

Data di Iscrizione: 22 novembre 2009

Messaggi recenti

Hi all,

I am working on EXT env.

I configured default.landing.page.path in the portal-ext.properties.

I have developed and deployed my theme successfully.

After I log in successfully, I can be sent to the default landing page.

But, when I do Forgot Password function, after I change my temporary password at update_password.jsp successfully, I am still on the update_password.jsp. After I hit F5, the default landing page is displayed.

How can I go to the default landing page without F5 after I change my temporary password at update_password.jsp?

Thanks a lot,
Kha
Shagul Khajamohideen
RE: Forward to default landing page from update password page
19 marzo 2010 5.07
Risposta

Shagul Khajamohideen

Punteggio: Liferay Master

Messaggi: 759

Data di Iscrizione: 27 settembre 2007

Messaggi recenti

Hey Kha,

The portal source has the answer for it. I did a quick look up and this is what I found.

UpdatePasswordAction:

1
2return mapping.findForward(ActionConstants.COMMON_REFERER);


referer_js.jsp - ActionConstants.COMMON_REFERER forward does the following

1
2
3<script type="text/javascript">
4    location.href = '<%= UnicodeFormatter.toString(referer) %>';
5</script>


sets the location to the referer ( the page from where you came).

Portal source struts-config.xml defines the above forward.

You could override them in the ext environment.

Hope this helps you proceed further.

Best,
Shagul
Kha N Nguyen
RE: Forward to default landing page from update password page
19 marzo 2010 5.38
Risposta

Kha N Nguyen

Punteggio: Junior Member

Messaggi: 89

Data di Iscrizione: 22 novembre 2009

Messaggi recenti

Shagul Khaja:
Hey Kha,

The portal source has the answer for it. I did a quick look up and this is what I found.

UpdatePasswordAction:

1
2return mapping.findForward(ActionConstants.COMMON_REFERER);


referer_js.jsp - ActionConstants.COMMON_REFERER forward does the following

1
2
3<script type="text/javascript">
4    location.href = '<%= UnicodeFormatter.toString(referer) %>';
5</script>


sets the location to the referer ( the page from where you came).

Portal source struts-config.xml defines the above forward.

You could override them in the ext environment.

Hope this helps you proceed further.

Best,
Shagul


I have tried but I am not success.