Example usage for com.liferay.portal.struts ActionConstants COMMON_FORWARD

List of usage examples for com.liferay.portal.struts ActionConstants COMMON_FORWARD

Introduction

In this page you can find the example usage for com.liferay.portal.struts ActionConstants COMMON_FORWARD.

Prototype

String COMMON_FORWARD

To view the source code for com.liferay.portal.struts ActionConstants COMMON_FORWARD.

Click Source Link

Usage

From source file:com.liferay.portlet.bookmarks.action.OpenEntryAction.java

License:Open Source License

@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response) throws Exception {

    try {//from   w  w w  . j a  va2s .  com
        long entryId = ParamUtil.getLong(request, "entryId");

        BookmarksEntry entry = BookmarksEntryServiceUtil.openEntry(entryId);

        request.setAttribute(WebKeys.FORWARD_URL, entry.getUrl());

        return mapping.findForward(ActionConstants.COMMON_FORWARD);
    } catch (Exception e) {
        PortalUtil.sendError(e, request, response);

        return null;
    }
}