Example usage for com.liferay.portal.kernel.util WebKeys LAYOUT

List of usage examples for com.liferay.portal.kernel.util WebKeys LAYOUT

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util WebKeys LAYOUT.

Prototype

String LAYOUT

To view the source code for com.liferay.portal.kernel.util WebKeys LAYOUT.

Click Source Link

Usage

From source file:cz.topolik.login.CaptchaChecker.java

License:Open Source License

protected void postProcessAuthFailure(HttpServletRequest request, HttpServletResponse response)
        throws Exception {

    Layout layout = (Layout) request.getAttribute(WebKeys.LAYOUT);

    PortletURL portletURL = PortletURLFactoryUtil.create(request, PortletKeys.LOGIN, layout.getPlid(),
            PortletRequest.RENDER_PHASE);

    portletURL.setParameter("saveLastPath", Boolean.FALSE.toString());

    portletURL.setWindowState(WindowState.MAXIMIZED);

    response.sendRedirect(portletURL.toString());
}