Foros de discusión

Add new portlet after Password Reminder

thumbnail
Anurag Piyush, modificado hace 11 años.

Add new portlet after Password Reminder

New Member Mensajes: 24 Fecha de incorporación: 19/07/12 Mensajes recientes
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 hace 11 años.

RE: Add new portlet after Password Reminder

Regular Member Mensajes: 237 Fecha de incorporación: 25/03/08 Mensajes recientes
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 hace 11 años.

RE: Add new portlet after Password Reminder

Liferay Master Mensajes: 735 Fecha de incorporación: 5/07/11 Mensajes recientes
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 hace 11 años.

RE: Add new portlet after Password Reminder

New Member Mensajes: 24 Fecha de incorporación: 19/07/12 Mensajes recientes
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 hace 11 años.

RE: Add new portlet after Password Reminder

New Member Mensaje: 1 Fecha de incorporación: 15/01/13 Mensajes recientes
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 hace 11 años.

RE: Add new portlet after Password Reminder

New Member Mensajes: 24 Fecha de incorporación: 19/07/12 Mensajes recientes
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.