Fórum

Add new portlet after Password Reminder

thumbnail
Anurag Piyush, modificado 11 Anos atrás.

Add new portlet after Password Reminder

New Member Postagens: 24 Data de Entrada: 19/07/12 Postagens Recentes
Hi,

I want to add new portlet after Password Reminder portlet . How to redirect new portlet after doing Password Reminder action.
I am confuse between <event> hook and <struct-action> hook. Which is the best way to do the action.

Thank you!
thumbnail
Archi Madhu, modificado 11 Anos atrás.

RE: Add new portlet after Password Reminder

Regular Member Postagens: 237 Data de Entrada: 25/03/08 Postagens Recentes
As per my understating you want to redirect user to a page he enters answers for reminder questions.

You may look into existing Liferay filters for same.

-Archi
thumbnail
Jan Geißler, modificado 11 Anos atrás.

RE: Add new portlet after Password Reminder

Liferay Master Postagens: 735 Data de Entrada: 05/07/11 Postagens Recentes
Not sure If I understand correctly:

After A User creates an account, he has to agree to the terms of use, and than add a Password Reminder Question / Phrase.
After that you want to call an additional form?
Or do you want to redirect to a specific page?

Greets
Jan
thumbnail
Anurag Piyush, modificado 11 Anos atrás.

RE: Add new portlet after Password Reminder

New Member Postagens: 24 Data de Entrada: 19/07/12 Postagens Recentes
I want to redirect to jsp page.

I have hooked password_reminder_query action

public class UpdateReminderQueryWrapper extends BaseStrutsAction {


@Override
public String execute(StrutsAction originalStrutsAction, HttpServletRequest request, HttpServletResponse response)
throws Exception {
}

//Here I want to redirect to jsp page on some condition.


return originalStrutsAction.execute(request, response);
}


}


I am unable to redirect . I have used many function like

response.sendRedirect(PortalUtil.getCurrentCompleteURL(request));

response.sendRedirect(request.getRequestURI());
Piotr D, modificado 11 Anos atrás.

RE: Add new portlet after Password Reminder

New Member Mensagem: 1 Data de Entrada: 15/01/13 Postagens Recentes
Hi Anurag,

Did you eventually find a solution to your problem? I have the same task to complete and thought that maybe you would share what you learnt.
thumbnail
Anurag Piyush, modificado 11 Anos atrás.

RE: Add new portlet after Password Reminder

New Member Postagens: 24 Data de Entrada: 19/07/12 Postagens Recentes
Hi Piotr,

I searched a lot regarding my problem but eventually I found that we cannot redirect through overriding the Struct action.

In my project instead of overriding Struct action, I have hooked jsp page and check the condition before submitting the page.