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

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

Introduction

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

Prototype

String ADDRESS

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

Click Source Link

Usage

From source file:com.liferay.users.admin.web.internal.portlet.action.ActionUtil.java

License:Open Source License

public static void getAddress(HttpServletRequest request) throws Exception {
    long addressId = ParamUtil.getLong(request, "addressId");

    Address address = null;/*from  w ww . j  av  a2 s.  c o  m*/

    if (addressId > 0) {
        address = AddressServiceUtil.getAddress(addressId);
    }

    request.setAttribute(WebKeys.ADDRESS, address);
}