留言板

Add new portlet after Password Reminder

thumbnail
Anurag Piyush,修改在11 年前。

Add new portlet after Password Reminder

New Member 帖子: 24 加入日期: 12-7-19 最近的帖子
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,修改在11 年前。

RE: Add new portlet after Password Reminder

Regular Member 帖子: 237 加入日期: 08-3-25 最近的帖子
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,修改在11 年前。

RE: Add new portlet after Password Reminder

Liferay Master 帖子: 735 加入日期: 11-7-5 最近的帖子
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,修改在11 年前。

RE: Add new portlet after Password Reminder

New Member 帖子: 24 加入日期: 12-7-19 最近的帖子
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,修改在11 年前。

RE: Add new portlet after Password Reminder

New Member 发布: 1 加入日期: 13-1-15 最近的帖子
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,修改在11 年前。

RE: Add new portlet after Password Reminder

New Member 帖子: 24 加入日期: 12-7-19 最近的帖子
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.