Safari
Safari

Reputation: 11935

Liferay and registration confirm page

I have a question about Liferay (6.1.1 CE)

Is possibile to change the registration page confirm? I have my registration confirm page and I would to redirect the user to this page after the registration procedure? Is possibile this?

Upvotes: 1

Views: 234

Answers (1)

Pankaj Kathiriya
Pankaj Kathiriya

Reputation: 4210

You can create struts-action-hook to override struts action path "/login/create_account".

In your custom Struts Action class' processAction method you can have following code .

originalStrutsPortletAction.processAction(
            portletConfig, actionRequest, actionResponse);
        if(SessionErrors.isEmpty(actionRequest)){
            actionResponse.sendRedirect("/web/xyz/registrationconfirmation");
        }

Hope this would help.

Link to example code:sample-struts-action-hook

Upvotes: 2

Related Questions