Example usage for javax.servlet.jsp PageContext getSession

List of usage examples for javax.servlet.jsp PageContext getSession

Introduction

In this page you can find the example usage for javax.servlet.jsp PageContext getSession.

Prototype


abstract public HttpSession getSession();

Source Link

Document

The current value of the session object (an HttpSession).

Usage

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.edit_005frole_005ftabs_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;// w  w  w . j a v  a  2  s . co m
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long scopeGroupId = null;
        com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        java.lang.Long portletGroupId = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
        permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        javax.portlet.ActionRequest actionRequest = null;
        javax.portlet.ActionResponse actionResponse = null;
        javax.portlet.EventRequest eventRequest = null;
        javax.portlet.EventResponse eventResponse = null;
        javax.portlet.PortletConfig portletConfig = null;
        java.lang.String portletName = null;
        javax.portlet.PortletPreferences portletPreferences = null;
        java.util.Map portletPreferencesValues = null;
        javax.portlet.PortletSession portletSession = null;
        java.util.Map portletSessionScope = null;
        javax.portlet.RenderRequest renderRequest = null;
        javax.portlet.RenderResponse renderResponse = null;
        javax.portlet.ResourceRequest resourceRequest = null;
        javax.portlet.ResourceResponse resourceResponse = null;
        actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
        actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
        eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
        eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
        resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                .findAttribute("resourceResponse");
        out.write('\n');
        out.write('\n');

        WindowState windowState = null;
        PortletMode portletMode = null;

        PortletURL currentURLObj = null;

        if (renderRequest != null) {
            windowState = renderRequest.getWindowState();
            portletMode = renderRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
        } else if (resourceRequest != null) {
            windowState = resourceRequest.getWindowState();
            portletMode = resourceRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
        }

        String currentURL = currentURLObj.toString();
        //String currentURL = PortalUtil.getCurrentURL(request);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String tabs1 = ParamUtil.getString(request, "tabs1");

        boolean showTabs1 = false;
        boolean showActiveUserSelect = true;

        if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
            tabs1 = "users";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
            if (!tabs1.equals("users")) {
                tabs1 = "organizations";
            }
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
            tabs1 = "user-groups";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
            tabs1 = "roles";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
            tabs1 = "password-policies";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
            tabs1 = "settings";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
            tabs1 = "monitoring";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
            tabs1 = "plugins";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
            showTabs1 = true;
        } else {
            showActiveUserSelect = false;

            if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                    || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                tabs1 = "users";
            }
        }

        if (Validator.isNull(tabs1)) {
            tabs1 = "users";
        }

        boolean filterManageableGroups = true;
        boolean filterManageableOrganizations = true;
        boolean filterManageableRoles = true;
        boolean filterManageableUserGroupRoles = true;
        boolean filterManageableUserGroups = true;

        if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableRoles = false;
            filterManageableUserGroupRoles = false;
            filterManageableUserGroups = false;
        } else if (permissionChecker.isCompanyAdmin()) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableUserGroups = false;
        }

        boolean includeSystemPortlets = true;

        int maxNumberOfRolesChecked = 500;

        Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        String cmd = ParamUtil.getString(request, Constants.CMD);

        tabs1 = ParamUtil.getString(request, "tabs1");

        String redirect = ParamUtil.getString(request, "redirect");
        String backURL = ParamUtil.getString(request, "backURL", redirect);

        Role role = (Role) request.getAttribute(WebKeys.ROLE);

        String portletResource = ParamUtil.getString(request, "portletResource");

        String portletResourceLabel = null;

        if (Validator.isNotNull(portletResource)) {
            Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletResource);

            portletResourceLabel = PortalUtil.getPortletTitle(portlet, application, locale);
        }

        // Edit

        PortletURL editRoleURL = renderResponse.createRenderURL();

        editRoleURL.setParameter("struts_action", "/enterprise_admin/edit_role");
        editRoleURL.setParameter("redirect", backURL);
        editRoleURL.setParameter(Constants.CMD, Constants.VIEW);
        editRoleURL.setParameter("roleId", String.valueOf(role.getRoleId()));

        // Define permissions

        PortletURL definePermissionsURL = renderResponse.createRenderURL();

        definePermissionsURL.setParameter("struts_action", "/enterprise_admin/edit_role_permissions");
        definePermissionsURL.setParameter("redirect", backURL);
        definePermissionsURL.setParameter(Constants.CMD, Constants.VIEW);
        definePermissionsURL.setParameter("roleId", String.valueOf(role.getRoleId()));

        // Assign members

        PortletURL assignMembersURL = renderResponse.createRenderURL();

        assignMembersURL.setParameter("struts_action", "/enterprise_admin/edit_role_assignments");
        assignMembersURL.setParameter("redirect", backURL);
        assignMembersURL.setParameter("roleId", String.valueOf(role.getRoleId()));

        int pos = 0;

        String tabs1Names = StringPool.BLANK;

        if (RolePermissionUtil.contains(permissionChecker, role.getRoleId(), ActionKeys.UPDATE)) {
            tabs1Names += ",edit";

            request.setAttribute("liferay-ui:tabs:url" + pos++, editRoleURL.toString());
        }

        String name = role.getName();

        if (!name.equals(RoleConstants.ADMINISTRATOR) && !name.equals(RoleConstants.COMMUNITY_ADMINISTRATOR)
                && !name.equals(RoleConstants.COMMUNITY_OWNER)
                && !name.equals(RoleConstants.ORGANIZATION_ADMINISTRATOR)
                && !name.equals(RoleConstants.ORGANIZATION_OWNER) && !name.equals(RoleConstants.OWNER)
                && RolePermissionUtil.contains(permissionChecker, role.getRoleId(),
                        ActionKeys.DEFINE_PERMISSIONS)) {
            tabs1Names += ",define-permissions";

            request.setAttribute("liferay-ui:tabs:url" + pos++, definePermissionsURL.toString());
        }

        boolean unassignableRole = false;

        if (name.equals(RoleConstants.GUEST) || name.equals(RoleConstants.OWNER)
                || name.equals(RoleConstants.USER)) {
            unassignableRole = true;
        }

        if (!unassignableRole && (role.getType() == RoleConstants.TYPE_REGULAR) && RolePermissionUtil
                .contains(permissionChecker, role.getRoleId(), ActionKeys.ASSIGN_MEMBERS)) {
            tabs1Names += ",assign-members";

            request.setAttribute("liferay-ui:tabs:url" + pos++, assignMembersURL.toString());
        }

        if (tabs1Names.startsWith(",")) {
            tabs1Names = tabs1Names.substring(1);
        }

        // Breadcrumbs

        PortalUtil.addPortletBreadcrumbEntry(request, role.getTitle(locale), null);

        request.setAttribute("edit_role_permissions.jsp-role", role);

        request.setAttribute("edit_role_permissions.jsp-portletResource", portletResource);

        out.write('\n');
        out.write('\n');
        //  liferay-ui:tabs
        com.liferay.taglib.ui.TabsTag _jspx_th_liferay_002dui_005ftabs_005f0 = (com.liferay.taglib.ui.TabsTag) _005fjspx_005ftagPool_005fliferay_002dui_005ftabs_0026_005fnames_005fnobody
                .get(com.liferay.taglib.ui.TabsTag.class);
        _jspx_th_liferay_002dui_005ftabs_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ftabs_005f0.setParent(null);
        // /html/portlet/enterprise_admin/edit_role_tabs.jsp(108,0) name = names type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftabs_005f0.setNames(tabs1Names);
        int _jspx_eval_liferay_002dui_005ftabs_005f0 = _jspx_th_liferay_002dui_005ftabs_005f0.doStartTag();
        if (_jspx_th_liferay_002dui_005ftabs_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ftabs_0026_005fnames_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ftabs_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ftabs_0026_005fnames_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ftabs_005f0);
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.user.additional_005femail_005faddresses_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;/*w w  w.j  av a  2s .co m*/
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long scopeGroupId = null;
        com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        java.lang.Long portletGroupId = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
        permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        javax.portlet.ActionRequest actionRequest = null;
        javax.portlet.ActionResponse actionResponse = null;
        javax.portlet.EventRequest eventRequest = null;
        javax.portlet.EventResponse eventResponse = null;
        javax.portlet.PortletConfig portletConfig = null;
        java.lang.String portletName = null;
        javax.portlet.PortletPreferences portletPreferences = null;
        java.util.Map portletPreferencesValues = null;
        javax.portlet.PortletSession portletSession = null;
        java.util.Map portletSessionScope = null;
        javax.portlet.RenderRequest renderRequest = null;
        javax.portlet.RenderResponse renderResponse = null;
        javax.portlet.ResourceRequest resourceRequest = null;
        javax.portlet.ResourceResponse resourceResponse = null;
        actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
        actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
        eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
        eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
        resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                .findAttribute("resourceResponse");
        out.write('\n');
        out.write('\n');

        WindowState windowState = null;
        PortletMode portletMode = null;

        PortletURL currentURLObj = null;

        if (renderRequest != null) {
            windowState = renderRequest.getWindowState();
            portletMode = renderRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
        } else if (resourceRequest != null) {
            windowState = resourceRequest.getWindowState();
            portletMode = resourceRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
        }

        String currentURL = currentURLObj.toString();
        //String currentURL = PortalUtil.getCurrentURL(request);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String tabs1 = ParamUtil.getString(request, "tabs1");

        boolean showTabs1 = false;
        boolean showActiveUserSelect = true;

        if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
            tabs1 = "users";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
            if (!tabs1.equals("users")) {
                tabs1 = "organizations";
            }
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
            tabs1 = "user-groups";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
            tabs1 = "roles";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
            tabs1 = "password-policies";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
            tabs1 = "settings";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
            tabs1 = "monitoring";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
            tabs1 = "plugins";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
            showTabs1 = true;
        } else {
            showActiveUserSelect = false;

            if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                    || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                tabs1 = "users";
            }
        }

        if (Validator.isNull(tabs1)) {
            tabs1 = "users";
        }

        boolean filterManageableGroups = true;
        boolean filterManageableOrganizations = true;
        boolean filterManageableRoles = true;
        boolean filterManageableUserGroupRoles = true;
        boolean filterManageableUserGroups = true;

        if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableRoles = false;
            filterManageableUserGroupRoles = false;
            filterManageableUserGroups = false;
        } else if (permissionChecker.isCompanyAdmin()) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableUserGroups = false;
        }

        boolean includeSystemPortlets = true;

        int maxNumberOfRolesChecked = 500;

        Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        String className = (String) request.getAttribute("emailAddresses.className");
        long classPK = (Long) request.getAttribute("emailAddresses.classPK");

        List<EmailAddress> emailAddresses = Collections.EMPTY_LIST;

        int[] emailAddressesIndexes = null;

        String emailAddressesIndexesParam = ParamUtil.getString(request, "emailAddressesIndexes");

        if (Validator.isNotNull(emailAddressesIndexesParam)) {
            emailAddresses = new ArrayList<EmailAddress>();

            emailAddressesIndexes = StringUtil.split(emailAddressesIndexesParam, 0);

            for (int emailAddressesIndex : emailAddressesIndexes) {
                emailAddresses.add(new EmailAddressImpl());
            }
        } else {
            if (classPK > 0) {
                emailAddresses = EmailAddressServiceUtil.getEmailAddresses(className, classPK);

                emailAddressesIndexes = new int[emailAddresses.size()];

                for (int i = 0; i < emailAddresses.size(); i++) {
                    emailAddressesIndexes[i] = i;
                }
            }

            if (emailAddresses.isEmpty()) {
                emailAddresses = new ArrayList<EmailAddress>();

                emailAddresses.add(new EmailAddressImpl());

                emailAddressesIndexes = new int[] { 0 };
            }

            if (emailAddressesIndexes == null) {
                emailAddressesIndexes = new int[0];
            }
        }

        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_liferay_002dui_005ferror_002dmarker_005f0(_jspx_page_context))
            return;
        out.write("\r\n");
        out.write("\r\n");
        out.write("<h3>");
        if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
            return;
        out.write("</h3>\r\n");
        out.write("\r\n");
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f0 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f0.setParent(null);
        // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(67,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0.setException(EmailAddressException.class);
        // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(67,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0.setMessage("please-enter-a-valid-email-address");
        int _jspx_eval_liferay_002dui_005ferror_005f0 = _jspx_th_liferay_002dui_005ferror_005f0.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f1 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f1.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f1.setParent(null);
        // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(68,0) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1
                .setKey(NoSuchListTypeException.class.getName() + className + ListTypeConstants.EMAIL_ADDRESS);
        // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(68,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1.setMessage("please-select-a-type");
        int _jspx_eval_liferay_002dui_005ferror_005f1 = _jspx_th_liferay_002dui_005ferror_005f1.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
        out.write("\r\n");
        out.write("\r\n");
        //  aui:fieldset
        com.liferay.taglib.aui.FieldsetTag _jspx_th_aui_005ffieldset_005f0 = (com.liferay.taglib.aui.FieldsetTag) _005fjspx_005ftagPool_005faui_005ffieldset
                .get(com.liferay.taglib.aui.FieldsetTag.class);
        _jspx_th_aui_005ffieldset_005f0.setPageContext(_jspx_page_context);
        _jspx_th_aui_005ffieldset_005f0.setParent(null);
        int _jspx_eval_aui_005ffieldset_005f0 = _jspx_th_aui_005ffieldset_005f0.doStartTag();
        if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_aui_005ffieldset_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_aui_005ffieldset_005f0.doInitBody();
            }
            do {
                out.write("\r\n");
                out.write("\r\n");
                out.write("\t");

                for (int i = 0; i < emailAddressesIndexes.length; i++) {
                    int emailAddressesIndex = emailAddressesIndexes[i];

                    EmailAddress emailAddress = emailAddresses.get(i);

                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t");
                    //  aui:model-context
                    com.liferay.taglib.aui.ModelContextTag _jspx_th_aui_005fmodel_002dcontext_005f0 = (com.liferay.taglib.aui.ModelContextTag) _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .get(com.liferay.taglib.aui.ModelContextTag.class);
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fmodel_002dcontext_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(79,2) name = bean type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setBean(emailAddress);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(79,2) name = model type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setModel(EmailAddress.class);
                    int _jspx_eval_aui_005fmodel_002dcontext_005f0 = _jspx_th_aui_005fmodel_002dcontext_005f0
                            .doStartTag();
                    if (_jspx_th_aui_005fmodel_002dcontext_005f0
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                                .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t<div class=\"lfr-form-row lfr-form-row-inline\">\r\n");
                    out.write("\t\t\t<div class=\"row-fields\">\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(83,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setName("emailAddressId" + emailAddressesIndex);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(83,4) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setType("hidden");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(83,4) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setValue(emailAddress.getEmailAddressId());
                    int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag();
                    if (_jspx_th_aui_005finput_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f1 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005flabel_005ffieldParam_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f1.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f1
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(85,4) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f1.setFieldParam("emailAddressAddress" + emailAddressesIndex);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(85,4) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f1.setLabel("email-address");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(85,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f1.setName("address");
                    int _jspx_eval_aui_005finput_005f1 = _jspx_th_aui_005finput_005f1.doStartTag();
                    if (_jspx_th_aui_005finput_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005flabel_005ffieldParam_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f1);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005flabel_005ffieldParam_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f1);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:select
                    com.liferay.taglib.aui.SelectTag _jspx_th_aui_005fselect_005f0 = (com.liferay.taglib.aui.SelectTag) _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                            .get(com.liferay.taglib.aui.SelectTag.class);
                    _jspx_th_aui_005fselect_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fselect_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(87,4) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setLabel("type");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(87,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setName("emailAddressTypeId" + emailAddressesIndex);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(87,4) name = listType type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setListType(className + ListTypeConstants.EMAIL_ADDRESS);
                    int _jspx_eval_aui_005fselect_005f0 = _jspx_th_aui_005fselect_005f0.doStartTag();
                    if (_jspx_th_aui_005fselect_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                                .reuse(_jspx_th_aui_005fselect_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                            .reuse(_jspx_th_aui_005fselect_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f2 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f2.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f2
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = checked type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setChecked(emailAddress.isPrimary());
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = cssClass type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setCssClass("primary-ctrl");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = id type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setId("emailAddressPrimary" + emailAddressesIndex);
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = inlineLabel type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setInlineLabel("left");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setLabel("primary");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setName("emailAddressPrimary");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setType("radio");
                    // /html/portlet/enterprise_admin/common/additional_email_addresses.jsp(89,4) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setValue(emailAddressesIndex);
                    int _jspx_eval_aui_005finput_005f2 = _jspx_th_aui_005finput_005f2.doStartTag();
                    if (_jspx_th_aui_005finput_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f2);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f2);
                    out.write("\r\n");
                    out.write("\t\t\t</div>\r\n");
                    out.write("\t\t</div>\r\n");
                    out.write("\r\n");
                    out.write("\t");

                }

                out.write("\r\n");
                out.write("\r\n");
                int evalDoAfterBody = _jspx_th_aui_005ffieldset_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
            }
        }
        if (_jspx_th_aui_005ffieldset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
            return;
        }
        _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_aui_005fscript_005f0(_jspx_page_context))
            return;
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.user.addresses_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;/*from  w  ww .jav  a 2s . c  o m*/
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long scopeGroupId = null;
        com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        java.lang.Long portletGroupId = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
        permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        javax.portlet.ActionRequest actionRequest = null;
        javax.portlet.ActionResponse actionResponse = null;
        javax.portlet.EventRequest eventRequest = null;
        javax.portlet.EventResponse eventResponse = null;
        javax.portlet.PortletConfig portletConfig = null;
        java.lang.String portletName = null;
        javax.portlet.PortletPreferences portletPreferences = null;
        java.util.Map portletPreferencesValues = null;
        javax.portlet.PortletSession portletSession = null;
        java.util.Map portletSessionScope = null;
        javax.portlet.RenderRequest renderRequest = null;
        javax.portlet.RenderResponse renderResponse = null;
        javax.portlet.ResourceRequest resourceRequest = null;
        javax.portlet.ResourceResponse resourceResponse = null;
        actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
        actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
        eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
        eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
        resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                .findAttribute("resourceResponse");
        out.write('\n');
        out.write('\n');

        WindowState windowState = null;
        PortletMode portletMode = null;

        PortletURL currentURLObj = null;

        if (renderRequest != null) {
            windowState = renderRequest.getWindowState();
            portletMode = renderRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
        } else if (resourceRequest != null) {
            windowState = resourceRequest.getWindowState();
            portletMode = resourceRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
        }

        String currentURL = currentURLObj.toString();
        //String currentURL = PortalUtil.getCurrentURL(request);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String tabs1 = ParamUtil.getString(request, "tabs1");

        boolean showTabs1 = false;
        boolean showActiveUserSelect = true;

        if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
            tabs1 = "users";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
            if (!tabs1.equals("users")) {
                tabs1 = "organizations";
            }
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
            tabs1 = "user-groups";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
            tabs1 = "roles";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
            tabs1 = "password-policies";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
            tabs1 = "settings";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
            tabs1 = "monitoring";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
            tabs1 = "plugins";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
            showTabs1 = true;
        } else {
            showActiveUserSelect = false;

            if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                    || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                tabs1 = "users";
            }
        }

        if (Validator.isNull(tabs1)) {
            tabs1 = "users";
        }

        boolean filterManageableGroups = true;
        boolean filterManageableOrganizations = true;
        boolean filterManageableRoles = true;
        boolean filterManageableUserGroupRoles = true;
        boolean filterManageableUserGroups = true;

        if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableRoles = false;
            filterManageableUserGroupRoles = false;
            filterManageableUserGroups = false;
        } else if (permissionChecker.isCompanyAdmin()) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableUserGroups = false;
        }

        boolean includeSystemPortlets = true;

        int maxNumberOfRolesChecked = 500;

        Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        String className = (String) request.getAttribute("addresses.className");
        long classPK = (Long) request.getAttribute("addresses.classPK");

        List<Address> addresses = Collections.EMPTY_LIST;

        int[] addressesIndexes = null;

        String addressesIndexesParam = ParamUtil.getString(request, "addressesIndexes");

        if (Validator.isNotNull(addressesIndexesParam)) {
            addresses = new ArrayList<Address>();

            addressesIndexes = StringUtil.split(addressesIndexesParam, 0);

            for (int addressesIndex : addressesIndexes) {
                addresses.add(new AddressImpl());
            }
        } else {
            if (classPK > 0) {
                addresses = AddressServiceUtil.getAddresses(className, classPK);

                addressesIndexes = new int[addresses.size()];

                for (int i = 0; i < addresses.size(); i++) {
                    addressesIndexes[i] = i;
                }
            }

            if (addresses.isEmpty()) {
                addresses = new ArrayList<Address>();

                addresses.add(new AddressImpl());

                addressesIndexes = new int[] { 0 };
            }

            if (addressesIndexes == null) {
                addressesIndexes = new int[0];
            }
        }

        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_liferay_002dui_005ferror_002dmarker_005f0(_jspx_page_context))
            return;
        out.write("\r\n");
        out.write("\r\n");
        out.write("<h3>");
        if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
            return;
        out.write("</h3>\r\n");
        out.write("\r\n");
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f0 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f0.setParent(null);
        // /html/portlet/enterprise_admin/common/addresses.jsp(67,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0.setException(AddressCityException.class);
        // /html/portlet/enterprise_admin/common/addresses.jsp(67,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0.setMessage("please-enter-a-valid-city");
        int _jspx_eval_liferay_002dui_005ferror_005f0 = _jspx_th_liferay_002dui_005ferror_005f0.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f1 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f1.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f1.setParent(null);
        // /html/portlet/enterprise_admin/common/addresses.jsp(68,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1.setException(AddressStreetException.class);
        // /html/portlet/enterprise_admin/common/addresses.jsp(68,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1.setMessage("please-enter-a-valid-street");
        int _jspx_eval_liferay_002dui_005ferror_005f1 = _jspx_th_liferay_002dui_005ferror_005f1.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f2 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f2.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f2.setParent(null);
        // /html/portlet/enterprise_admin/common/addresses.jsp(69,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f2.setException(AddressZipException.class);
        // /html/portlet/enterprise_admin/common/addresses.jsp(69,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f2.setMessage("please-enter-a-valid-zip");
        int _jspx_eval_liferay_002dui_005ferror_005f2 = _jspx_th_liferay_002dui_005ferror_005f2.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f2);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f2);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f3 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f3.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f3.setParent(null);
        // /html/portlet/enterprise_admin/common/addresses.jsp(70,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f3.setException(NoSuchCountryException.class);
        // /html/portlet/enterprise_admin/common/addresses.jsp(70,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f3.setMessage("please-select-a-country");
        int _jspx_eval_liferay_002dui_005ferror_005f3 = _jspx_th_liferay_002dui_005ferror_005f3.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f3);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f3);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f4 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f4.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f4.setParent(null);
        // /html/portlet/enterprise_admin/common/addresses.jsp(71,0) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f4
                .setKey(NoSuchListTypeException.class.getName() + className + ListTypeConstants.ADDRESS);
        // /html/portlet/enterprise_admin/common/addresses.jsp(71,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f4.setMessage("please-select-a-type");
        int _jspx_eval_liferay_002dui_005ferror_005f4 = _jspx_th_liferay_002dui_005ferror_005f4.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f4);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f4);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f5 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f5.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f5.setParent(null);
        // /html/portlet/enterprise_admin/common/addresses.jsp(72,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f5.setException(NoSuchRegionException.class);
        // /html/portlet/enterprise_admin/common/addresses.jsp(72,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f5.setMessage("please-select-a-region");
        int _jspx_eval_liferay_002dui_005ferror_005f5 = _jspx_th_liferay_002dui_005ferror_005f5.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f5);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f5);
        out.write("\r\n");
        out.write("\r\n");
        //  aui:fieldset
        com.liferay.taglib.aui.FieldsetTag _jspx_th_aui_005ffieldset_005f0 = (com.liferay.taglib.aui.FieldsetTag) _005fjspx_005ftagPool_005faui_005ffieldset
                .get(com.liferay.taglib.aui.FieldsetTag.class);
        _jspx_th_aui_005ffieldset_005f0.setPageContext(_jspx_page_context);
        _jspx_th_aui_005ffieldset_005f0.setParent(null);
        int _jspx_eval_aui_005ffieldset_005f0 = _jspx_th_aui_005ffieldset_005f0.doStartTag();
        if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_aui_005ffieldset_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_aui_005ffieldset_005f0.doInitBody();
            }
            do {
                out.write("\r\n");
                out.write("\r\n");
                out.write("\t");

                for (int i = 0; i < addressesIndexes.length; i++) {
                    int addressesIndex = addressesIndexes[i];

                    Address address = addresses.get(i);

                    long countryId = ParamUtil.getLong(request, "addressCountryId" + addressesIndex,
                            address.getCountryId());
                    long regionId = ParamUtil.getLong(request, "addressRegionId" + addressesIndex,
                            address.getRegionId());

                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t");
                    //  aui:model-context
                    com.liferay.taglib.aui.ModelContextTag _jspx_th_aui_005fmodel_002dcontext_005f0 = (com.liferay.taglib.aui.ModelContextTag) _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .get(com.liferay.taglib.aui.ModelContextTag.class);
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fmodel_002dcontext_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/addresses.jsp(86,2) name = bean type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setBean(address);
                    // /html/portlet/enterprise_admin/common/addresses.jsp(86,2) name = model type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setModel(Address.class);
                    int _jspx_eval_aui_005fmodel_002dcontext_005f0 = _jspx_th_aui_005fmodel_002dcontext_005f0
                            .doStartTag();
                    if (_jspx_th_aui_005fmodel_002dcontext_005f0
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                                .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t<div class=\"lfr-form-row\">\r\n");
                    out.write("\t\t\t<div class=\"row-fields\">\r\n");
                    out.write("\t\t\t\t");
                    //  aui:column
                    com.liferay.taglib.aui.ColumnTag _jspx_th_aui_005fcolumn_005f0 = (com.liferay.taglib.aui.ColumnTag) _005fjspx_005ftagPool_005faui_005fcolumn
                            .get(com.liferay.taglib.aui.ColumnTag.class);
                    _jspx_th_aui_005fcolumn_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fcolumn_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    int _jspx_eval_aui_005fcolumn_005f0 = _jspx_th_aui_005fcolumn_005f0.doStartTag();
                    if (_jspx_eval_aui_005fcolumn_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_aui_005fcolumn_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_aui_005fcolumn_005f0
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_aui_005fcolumn_005f0.doInitBody();
                        }
                        do {
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f0
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f0);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(91,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f0.setName("addressId" + addressesIndex);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(91,5) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f0.setType("hidden");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(91,5) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f0.setValue(address.getAddressId());
                            int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag();
                            if (_jspx_th_aui_005finput_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f0);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f1 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f1
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f0);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(93,5) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f1.setFieldParam("addressStreet1_" + addressesIndex);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(93,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f1.setName("street1");
                            int _jspx_eval_aui_005finput_005f1 = _jspx_th_aui_005finput_005f1.doStartTag();
                            if (_jspx_th_aui_005finput_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f1);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f2 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f2.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f2
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f0);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(95,5) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f2.setFieldParam("addressStreet2_" + addressesIndex);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(95,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f2.setName("street2");
                            int _jspx_eval_aui_005finput_005f2 = _jspx_th_aui_005finput_005f2.doStartTag();
                            if (_jspx_th_aui_005finput_005f2
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f2);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f2);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f3 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f3.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f3
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f0);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(97,5) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f3.setFieldParam("addressStreet3_" + addressesIndex);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(97,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f3.setName("street3");
                            int _jspx_eval_aui_005finput_005f3 = _jspx_th_aui_005finput_005f3.doStartTag();
                            if (_jspx_th_aui_005finput_005f3
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f3);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f3);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:select
                            com.liferay.taglib.aui.SelectTag _jspx_th_aui_005fselect_005f0 = (com.liferay.taglib.aui.SelectTag) _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flabel_005fnobody
                                    .get(com.liferay.taglib.aui.SelectTag.class);
                            _jspx_th_aui_005fselect_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005fselect_005f0
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f0);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(99,5) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005fselect_005f0.setLabel("country");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(99,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005fselect_005f0.setName("addressCountryId" + addressesIndex);
                            int _jspx_eval_aui_005fselect_005f0 = _jspx_th_aui_005fselect_005f0.doStartTag();
                            if (_jspx_th_aui_005fselect_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flabel_005fnobody
                                        .reuse(_jspx_th_aui_005fselect_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flabel_005fnobody
                                    .reuse(_jspx_th_aui_005fselect_005f0);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:select
                            com.liferay.taglib.aui.SelectTag _jspx_th_aui_005fselect_005f1 = (com.liferay.taglib.aui.SelectTag) _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flabel_005fnobody
                                    .get(com.liferay.taglib.aui.SelectTag.class);
                            _jspx_th_aui_005fselect_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005fselect_005f1
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f0);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(101,5) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005fselect_005f1.setLabel("region");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(101,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005fselect_005f1.setName("addressRegionId" + addressesIndex);
                            int _jspx_eval_aui_005fselect_005f1 = _jspx_th_aui_005fselect_005f1.doStartTag();
                            if (_jspx_th_aui_005fselect_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flabel_005fnobody
                                        .reuse(_jspx_th_aui_005fselect_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flabel_005fnobody
                                    .reuse(_jspx_th_aui_005fselect_005f1);
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            int evalDoAfterBody = _jspx_th_aui_005fcolumn_005f0.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_aui_005fcolumn_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_aui_005fcolumn_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fcolumn.reuse(_jspx_th_aui_005fcolumn_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fcolumn.reuse(_jspx_th_aui_005fcolumn_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:column
                    com.liferay.taglib.aui.ColumnTag _jspx_th_aui_005fcolumn_005f1 = (com.liferay.taglib.aui.ColumnTag) _005fjspx_005ftagPool_005faui_005fcolumn
                            .get(com.liferay.taglib.aui.ColumnTag.class);
                    _jspx_th_aui_005fcolumn_005f1.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fcolumn_005f1
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    int _jspx_eval_aui_005fcolumn_005f1 = _jspx_th_aui_005fcolumn_005f1.doStartTag();
                    if (_jspx_eval_aui_005fcolumn_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_aui_005fcolumn_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_aui_005fcolumn_005f1
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_aui_005fcolumn_005f1.doInitBody();
                        }
                        do {
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:select
                            com.liferay.taglib.aui.SelectTag _jspx_th_aui_005fselect_005f2 = (com.liferay.taglib.aui.SelectTag) _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                                    .get(com.liferay.taglib.aui.SelectTag.class);
                            _jspx_th_aui_005fselect_005f2.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005fselect_005f2
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f1);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(105,5) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005fselect_005f2.setLabel("type");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(105,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005fselect_005f2.setName("addressTypeId" + addressesIndex);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(105,5) name = listType type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005fselect_005f2.setListType(className + ListTypeConstants.ADDRESS);
                            int _jspx_eval_aui_005fselect_005f2 = _jspx_th_aui_005fselect_005f2.doStartTag();
                            if (_jspx_th_aui_005fselect_005f2
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                                        .reuse(_jspx_th_aui_005fselect_005f2);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                                    .reuse(_jspx_th_aui_005fselect_005f2);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f4 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f4.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f4
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f1);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(107,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f4.setName("zip");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(107,5) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f4.setFieldParam("addressZip" + addressesIndex);
                            int _jspx_eval_aui_005finput_005f4 = _jspx_th_aui_005finput_005f4.doStartTag();
                            if (_jspx_th_aui_005finput_005f4
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f4);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f4);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f5 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f5.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f5
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f1);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(109,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f5.setName("city");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(109,5) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f5.setFieldParam("addressCity" + addressesIndex);
                            int _jspx_eval_aui_005finput_005f5 = _jspx_th_aui_005finput_005f5.doStartTag();
                            if (_jspx_th_aui_005finput_005f5
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f5);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f5);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f6 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f6.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f6
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f1);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = checked type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setChecked(address.isPrimary());
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = cssClass type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setCssClass("primary-ctrl");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = id type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setId("addressPrimary" + addressesIndex);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = inlineLabel type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setInlineLabel("left");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setLabel("primary");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setName("addressPrimary");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setType("radio");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(111,5) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f6.setValue(addressesIndex);
                            int _jspx_eval_aui_005finput_005f6 = _jspx_th_aui_005finput_005f6.doStartTag();
                            if (_jspx_th_aui_005finput_005f6
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f6);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f6);
                            out.write("\r\n");
                            out.write("\r\n");
                            out.write("\t\t\t\t\t");
                            //  aui:input
                            com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f7 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005finlineLabel_005ffieldParam_005fcssClass_005fnobody
                                    .get(com.liferay.taglib.aui.InputTag.class);
                            _jspx_th_aui_005finput_005f7.setPageContext(_jspx_page_context);
                            _jspx_th_aui_005finput_005f7
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcolumn_005f1);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(113,5) name = cssClass type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f7.setCssClass("mailing-ctrl");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(113,5) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f7.setFieldParam("addressMailing" + addressesIndex);
                            // /html/portlet/enterprise_admin/common/addresses.jsp(113,5) name = inlineLabel type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f7.setInlineLabel("left");
                            // /html/portlet/enterprise_admin/common/addresses.jsp(113,5) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_aui_005finput_005f7.setName("mailing");
                            int _jspx_eval_aui_005finput_005f7 = _jspx_th_aui_005finput_005f7.doStartTag();
                            if (_jspx_th_aui_005finput_005f7
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005finlineLabel_005ffieldParam_005fcssClass_005fnobody
                                        .reuse(_jspx_th_aui_005finput_005f7);
                                return;
                            }
                            _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005finlineLabel_005ffieldParam_005fcssClass_005fnobody
                                    .reuse(_jspx_th_aui_005finput_005f7);
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            int evalDoAfterBody = _jspx_th_aui_005fcolumn_005f1.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_aui_005fcolumn_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_aui_005fcolumn_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fcolumn.reuse(_jspx_th_aui_005fcolumn_005f1);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fcolumn.reuse(_jspx_th_aui_005fcolumn_005f1);
                    out.write("\r\n");
                    out.write("\t\t\t</div>\r\n");
                    out.write("\t\t</div>\r\n");
                    out.write("\r\n");
                    out.write("\t\t");
                    //  aui:script
                    com.liferay.taglib.aui.ScriptTag _jspx_th_aui_005fscript_005f0 = (com.liferay.taglib.aui.ScriptTag) _005fjspx_005ftagPool_005faui_005fscript_0026_005fuse
                            .get(com.liferay.taglib.aui.ScriptTag.class);
                    _jspx_th_aui_005fscript_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fscript_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/addresses.jsp(118,2) name = use type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fscript_005f0.setUse("liferay-dynamic-select");
                    int _jspx_eval_aui_005fscript_005f0 = _jspx_th_aui_005fscript_005f0.doStartTag();
                    if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_aui_005fscript_005f0
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_aui_005fscript_005f0.doInitBody();
                        }
                        do {
                            out.write("\r\n");
                            out.write("\t\t\tnew Liferay.DynamicSelect(\r\n");
                            out.write("\t\t\t\t[\r\n");
                            out.write("\t\t\t\t\t{\r\n");
                            out.write("\t\t\t\t\t\tselect: '");
                            if (_jspx_meth_portlet_005fnamespace_005f0(_jspx_th_aui_005fscript_005f0,
                                    _jspx_page_context))
                                return;
                            out.write("addressCountryId");
                            out.print(addressesIndex);
                            out.write("',\r\n");
                            out.write("\t\t\t\t\t\tselectData: Liferay.Address.getCountries,\r\n");
                            out.write("\t\t\t\t\t\tselectDesc: 'name',\r\n");
                            out.write("\t\t\t\t\t\tselectId: 'countryId',\r\n");
                            out.write("\t\t\t\t\t\tselectVal: '");
                            out.print(countryId);
                            out.write("'\r\n");
                            out.write("\t\t\t\t\t},\r\n");
                            out.write("\t\t\t\t\t{\r\n");
                            out.write("\t\t\t\t\t\tselect: '");
                            if (_jspx_meth_portlet_005fnamespace_005f1(_jspx_th_aui_005fscript_005f0,
                                    _jspx_page_context))
                                return;
                            out.write("addressRegionId");
                            out.print(addressesIndex);
                            out.write("',\r\n");
                            out.write("\t\t\t\t\t\tselectData: Liferay.Address.getRegions,\r\n");
                            out.write("\t\t\t\t\t\tselectDesc: 'name',\r\n");
                            out.write("\t\t\t\t\t\tselectId: 'regionId',\r\n");
                            out.write("\t\t\t\t\t\tselectVal: '");
                            out.print(regionId);
                            out.write("'\r\n");
                            out.write("\t\t\t\t\t}\r\n");
                            out.write("\t\t\t\t]\r\n");
                            out.write("\t\t\t);\r\n");
                            out.write("\t\t");
                            int evalDoAfterBody = _jspx_th_aui_005fscript_005f0.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_aui_005fscript_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fscript_0026_005fuse
                                .reuse(_jspx_th_aui_005fscript_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fscript_0026_005fuse.reuse(_jspx_th_aui_005fscript_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t");

                }

                out.write("\r\n");
                out.write("\r\n");
                int evalDoAfterBody = _jspx_th_aui_005ffieldset_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
            }
        }
        if (_jspx_th_aui_005ffieldset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
            return;
        }
        _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_aui_005fscript_005f1(_jspx_page_context))
            return;
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.user.announcements_005fcheckbox_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;//from   w  w  w . j  a  v a 2 s.  c  o  m
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long scopeGroupId = null;
        com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        java.lang.Long portletGroupId = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
        permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        javax.portlet.ActionRequest actionRequest = null;
        javax.portlet.ActionResponse actionResponse = null;
        javax.portlet.EventRequest eventRequest = null;
        javax.portlet.EventResponse eventResponse = null;
        javax.portlet.PortletConfig portletConfig = null;
        java.lang.String portletName = null;
        javax.portlet.PortletPreferences portletPreferences = null;
        java.util.Map portletPreferencesValues = null;
        javax.portlet.PortletSession portletSession = null;
        java.util.Map portletSessionScope = null;
        javax.portlet.RenderRequest renderRequest = null;
        javax.portlet.RenderResponse renderResponse = null;
        javax.portlet.ResourceRequest resourceRequest = null;
        javax.portlet.ResourceResponse resourceResponse = null;
        actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
        actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
        eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
        eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
        resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                .findAttribute("resourceResponse");
        out.write('\n');
        out.write('\n');

        WindowState windowState = null;
        PortletMode portletMode = null;

        PortletURL currentURLObj = null;

        if (renderRequest != null) {
            windowState = renderRequest.getWindowState();
            portletMode = renderRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
        } else if (resourceRequest != null) {
            windowState = resourceRequest.getWindowState();
            portletMode = resourceRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
        }

        String currentURL = currentURLObj.toString();
        //String currentURL = PortalUtil.getCurrentURL(request);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String tabs1 = ParamUtil.getString(request, "tabs1");

        boolean showTabs1 = false;
        boolean showActiveUserSelect = true;

        if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
            tabs1 = "users";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
            if (!tabs1.equals("users")) {
                tabs1 = "organizations";
            }
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
            tabs1 = "user-groups";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
            tabs1 = "roles";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
            tabs1 = "password-policies";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
            tabs1 = "settings";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
            tabs1 = "monitoring";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
            tabs1 = "plugins";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
            showTabs1 = true;
        } else {
            showActiveUserSelect = false;

            if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                    || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                tabs1 = "users";
            }
        }

        if (Validator.isNull(tabs1)) {
            tabs1 = "users";
        }

        boolean filterManageableGroups = true;
        boolean filterManageableOrganizations = true;
        boolean filterManageableRoles = true;
        boolean filterManageableUserGroupRoles = true;
        boolean filterManageableUserGroups = true;

        if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableRoles = false;
            filterManageableUserGroupRoles = false;
            filterManageableUserGroups = false;
        } else if (permissionChecker.isCompanyAdmin()) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableUserGroups = false;
        }

        boolean includeSystemPortlets = true;

        int maxNumberOfRolesChecked = 500;

        Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
        SearchEntry entry = (SearchEntry) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW_ENTRY);

        AnnouncementsDelivery delivery = (AnnouncementsDelivery) row.getObject();

        int index = entry.getIndex();

        String param = "announcementsType" + delivery.getType();
        boolean defaultValue = false;
        boolean disabled = false;

        if (index == 1) {
            param += "Email";
            defaultValue = delivery.isEmail();
        } else if (index == 2) {
            param += "Sms";
            defaultValue = delivery.isSms();
        } else if (index == 3) {
            param += "Website";
            defaultValue = delivery.isWebsite();
            disabled = true;
        }

        out.write('\n');
        out.write('\n');
        //  aui:input
        com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005fdisabled_005fnobody
                .get(com.liferay.taglib.aui.InputTag.class);
        _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context);
        _jspx_th_aui_005finput_005f0.setParent(null);
        // /html/portlet/enterprise_admin/user/announcements_checkbox.jsp(46,0) name = disabled type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_aui_005finput_005f0.setDisabled(disabled);
        // /html/portlet/enterprise_admin/user/announcements_checkbox.jsp(46,0) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_aui_005finput_005f0.setLabel("");
        // /html/portlet/enterprise_admin/user/announcements_checkbox.jsp(46,0) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_aui_005finput_005f0.setName(param);
        // /html/portlet/enterprise_admin/user/announcements_checkbox.jsp(46,0) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_aui_005finput_005f0.setType("checkbox");
        // /html/portlet/enterprise_admin/user/announcements_checkbox.jsp(46,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_aui_005finput_005f0.setValue(defaultValue);
        int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag();
        if (_jspx_th_aui_005finput_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005fdisabled_005fnobody
                    .reuse(_jspx_th_aui_005finput_005f0);
            return;
        }
        _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005fdisabled_005fnobody
                .reuse(_jspx_th_aui_005finput_005f0);
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.user.categorization_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
          throws java.io.IOException, ServletException {

      PageContext pageContext = null;
      HttpSession session = null;/*from  w w w. j  a  va  2s.  c o  m*/
      ServletContext application = null;
      ServletConfig config = null;
      JspWriter out = null;
      Object page = this;
      JspWriter _jspx_out = null;
      PageContext _jspx_page_context = null;

      try {
          response.setContentType("text/html; charset=UTF-8");
          pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
          _jspx_page_context = pageContext;
          application = pageContext.getServletContext();
          config = pageContext.getServletConfig();
          session = pageContext.getSession();
          out = pageContext.getOut();
          _jspx_out = out;

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          //  liferay-theme:defineObjects
          com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.theme.DefineObjectsTag.class);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
          com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
          com.liferay.portal.model.Company company = null;
          com.liferay.portal.model.Account account = null;
          com.liferay.portal.model.User user = null;
          com.liferay.portal.model.User realUser = null;
          com.liferay.portal.model.Contact contact = null;
          com.liferay.portal.model.Layout layout = null;
          java.util.List layouts = null;
          java.lang.Long plid = null;
          com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
          java.lang.Long scopeGroupId = null;
          com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
          java.util.Locale locale = null;
          java.util.TimeZone timeZone = null;
          com.liferay.portal.model.Theme theme = null;
          com.liferay.portal.model.ColorScheme colorScheme = null;
          com.liferay.portal.theme.PortletDisplay portletDisplay = null;
          java.lang.Long portletGroupId = null;
          themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
          company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
          account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
          user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
          realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
          contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
          layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
          layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
          plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
          layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                  .findAttribute("layoutTypePortlet");
          scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
          permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                  .findAttribute("permissionChecker");
          locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
          timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
          theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
          colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
          portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                  .findAttribute("portletDisplay");
          portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');
          //  portlet:defineObjects
          com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
          _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
          if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
          javax.portlet.ActionRequest actionRequest = null;
          javax.portlet.ActionResponse actionResponse = null;
          javax.portlet.EventRequest eventRequest = null;
          javax.portlet.EventResponse eventResponse = null;
          javax.portlet.PortletConfig portletConfig = null;
          java.lang.String portletName = null;
          javax.portlet.PortletPreferences portletPreferences = null;
          java.util.Map portletPreferencesValues = null;
          javax.portlet.PortletSession portletSession = null;
          java.util.Map portletSessionScope = null;
          javax.portlet.RenderRequest renderRequest = null;
          javax.portlet.RenderResponse renderResponse = null;
          javax.portlet.ResourceRequest resourceRequest = null;
          javax.portlet.ResourceResponse resourceResponse = null;
          actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
          actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
          eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
          eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
          portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
          portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
          portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                  .findAttribute("portletPreferences");
          portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
          portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
          portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
          renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
          renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
          resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
          resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                  .findAttribute("resourceResponse");
          out.write('\n');
          out.write('\n');

          WindowState windowState = null;
          PortletMode portletMode = null;

          PortletURL currentURLObj = null;

          if (renderRequest != null) {
              windowState = renderRequest.getWindowState();
              portletMode = renderRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
          } else if (resourceRequest != null) {
              windowState = resourceRequest.getWindowState();
              portletMode = resourceRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
          }

          String currentURL = currentURLObj.toString();
          //String currentURL = PortalUtil.getCurrentURL(request);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");

          String tabs1 = ParamUtil.getString(request, "tabs1");

          boolean showTabs1 = false;
          boolean showActiveUserSelect = true;

          if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
              tabs1 = "users";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
              if (!tabs1.equals("users")) {
                  tabs1 = "organizations";
              }
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
              tabs1 = "user-groups";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
              tabs1 = "roles";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
              tabs1 = "password-policies";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
              tabs1 = "settings";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
              tabs1 = "monitoring";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
              tabs1 = "plugins";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
              showTabs1 = true;
          } else {
              showActiveUserSelect = false;

              if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                      || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                  tabs1 = "users";
              }
          }

          if (Validator.isNull(tabs1)) {
              tabs1 = "users";
          }

          boolean filterManageableGroups = true;
          boolean filterManageableOrganizations = true;
          boolean filterManageableRoles = true;
          boolean filterManageableUserGroupRoles = true;
          boolean filterManageableUserGroups = true;

          if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableRoles = false;
              filterManageableUserGroupRoles = false;
              filterManageableUserGroups = false;
          } else if (permissionChecker.isCompanyAdmin()) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableUserGroups = false;
          }

          boolean includeSystemPortlets = true;

          int maxNumberOfRolesChecked = 500;

          Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          User selUser = (User) request.getAttribute("user.selUser");

          out.write('\n');
          out.write('\n');
          //  aui:model-context
          com.liferay.taglib.aui.ModelContextTag _jspx_th_aui_005fmodel_002dcontext_005f0 = (com.liferay.taglib.aui.ModelContextTag) _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                  .get(com.liferay.taglib.aui.ModelContextTag.class);
          _jspx_th_aui_005fmodel_002dcontext_005f0.setPageContext(_jspx_page_context);
          _jspx_th_aui_005fmodel_002dcontext_005f0.setParent(null);
          // /html/portlet/enterprise_admin/user/categorization.jsp(23,0) name = bean type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005fmodel_002dcontext_005f0.setBean(selUser);
          // /html/portlet/enterprise_admin/user/categorization.jsp(23,0) name = model type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005fmodel_002dcontext_005f0.setModel(User.class);
          int _jspx_eval_aui_005fmodel_002dcontext_005f0 = _jspx_th_aui_005fmodel_002dcontext_005f0.doStartTag();
          if (_jspx_th_aui_005fmodel_002dcontext_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                      .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
              return;
          }
          _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                  .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
          out.write("\n");
          out.write("\n");
          out.write("<h3>");
          if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
              return;
          out.write("</h3>\n");
          out.write("\n");
          if (_jspx_meth_aui_005ffieldset_005f0(_jspx_page_context))
              return;
          out.write("\n");
          out.write("\n");
          out.write("<h3>");
          if (_jspx_meth_liferay_002dui_005fmessage_005f1(_jspx_page_context))
              return;
          out.write("</h3>\n");
          out.write("\n");
          if (_jspx_meth_aui_005ffieldset_005f1(_jspx_page_context))
              return;
      } catch (Throwable t) {
          if (!(t instanceof SkipPageException)) {
              out = _jspx_out;
              if (out != null && out.getBufferSize() != 0)
                  try {
                      out.clearBuffer();
                  } catch (java.io.IOException e) {
                  }
              if (_jspx_page_context != null)
                  _jspx_page_context.handlePageException(t);
          }
      } finally {
          _jspxFactory.releasePageContext(_jspx_page_context);
      }
  }

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.user.open_005fid_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
          throws java.io.IOException, ServletException {

      PageContext pageContext = null;
      HttpSession session = null;/*  w  w w  . j ava 2s  .  com*/
      ServletContext application = null;
      ServletConfig config = null;
      JspWriter out = null;
      Object page = this;
      JspWriter _jspx_out = null;
      PageContext _jspx_page_context = null;

      try {
          response.setContentType("text/html; charset=UTF-8");
          pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
          _jspx_page_context = pageContext;
          application = pageContext.getServletContext();
          config = pageContext.getServletConfig();
          session = pageContext.getSession();
          out = pageContext.getOut();
          _jspx_out = out;

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          //  liferay-theme:defineObjects
          com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.theme.DefineObjectsTag.class);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
          com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
          com.liferay.portal.model.Company company = null;
          com.liferay.portal.model.Account account = null;
          com.liferay.portal.model.User user = null;
          com.liferay.portal.model.User realUser = null;
          com.liferay.portal.model.Contact contact = null;
          com.liferay.portal.model.Layout layout = null;
          java.util.List layouts = null;
          java.lang.Long plid = null;
          com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
          java.lang.Long scopeGroupId = null;
          com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
          java.util.Locale locale = null;
          java.util.TimeZone timeZone = null;
          com.liferay.portal.model.Theme theme = null;
          com.liferay.portal.model.ColorScheme colorScheme = null;
          com.liferay.portal.theme.PortletDisplay portletDisplay = null;
          java.lang.Long portletGroupId = null;
          themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
          company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
          account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
          user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
          realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
          contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
          layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
          layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
          plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
          layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                  .findAttribute("layoutTypePortlet");
          scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
          permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                  .findAttribute("permissionChecker");
          locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
          timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
          theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
          colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
          portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                  .findAttribute("portletDisplay");
          portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');
          //  portlet:defineObjects
          com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
          _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
          if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
          javax.portlet.ActionRequest actionRequest = null;
          javax.portlet.ActionResponse actionResponse = null;
          javax.portlet.EventRequest eventRequest = null;
          javax.portlet.EventResponse eventResponse = null;
          javax.portlet.PortletConfig portletConfig = null;
          java.lang.String portletName = null;
          javax.portlet.PortletPreferences portletPreferences = null;
          java.util.Map portletPreferencesValues = null;
          javax.portlet.PortletSession portletSession = null;
          java.util.Map portletSessionScope = null;
          javax.portlet.RenderRequest renderRequest = null;
          javax.portlet.RenderResponse renderResponse = null;
          javax.portlet.ResourceRequest resourceRequest = null;
          javax.portlet.ResourceResponse resourceResponse = null;
          actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
          actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
          eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
          eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
          portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
          portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
          portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                  .findAttribute("portletPreferences");
          portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
          portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
          portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
          renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
          renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
          resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
          resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                  .findAttribute("resourceResponse");
          out.write('\n');
          out.write('\n');

          WindowState windowState = null;
          PortletMode portletMode = null;

          PortletURL currentURLObj = null;

          if (renderRequest != null) {
              windowState = renderRequest.getWindowState();
              portletMode = renderRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
          } else if (resourceRequest != null) {
              windowState = resourceRequest.getWindowState();
              portletMode = resourceRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
          }

          String currentURL = currentURLObj.toString();
          //String currentURL = PortalUtil.getCurrentURL(request);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");

          String tabs1 = ParamUtil.getString(request, "tabs1");

          boolean showTabs1 = false;
          boolean showActiveUserSelect = true;

          if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
              tabs1 = "users";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
              if (!tabs1.equals("users")) {
                  tabs1 = "organizations";
              }
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
              tabs1 = "user-groups";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
              tabs1 = "roles";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
              tabs1 = "password-policies";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
              tabs1 = "settings";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
              tabs1 = "monitoring";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
              tabs1 = "plugins";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
              showTabs1 = true;
          } else {
              showActiveUserSelect = false;

              if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                      || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                  tabs1 = "users";
              }
          }

          if (Validator.isNull(tabs1)) {
              tabs1 = "users";
          }

          boolean filterManageableGroups = true;
          boolean filterManageableOrganizations = true;
          boolean filterManageableRoles = true;
          boolean filterManageableUserGroupRoles = true;
          boolean filterManageableUserGroups = true;

          if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableRoles = false;
              filterManageableUserGroupRoles = false;
              filterManageableUserGroups = false;
          } else if (permissionChecker.isCompanyAdmin()) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableUserGroups = false;
          }

          boolean includeSystemPortlets = true;

          int maxNumberOfRolesChecked = 500;

          Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          User selUser = (User) request.getAttribute("user.selUser");

          out.write('\n');
          out.write('\n');
          //  aui:model-context
          com.liferay.taglib.aui.ModelContextTag _jspx_th_aui_005fmodel_002dcontext_005f0 = (com.liferay.taglib.aui.ModelContextTag) _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                  .get(com.liferay.taglib.aui.ModelContextTag.class);
          _jspx_th_aui_005fmodel_002dcontext_005f0.setPageContext(_jspx_page_context);
          _jspx_th_aui_005fmodel_002dcontext_005f0.setParent(null);
          // /html/portlet/enterprise_admin/user/open_id.jsp(23,0) name = bean type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005fmodel_002dcontext_005f0.setBean(selUser);
          // /html/portlet/enterprise_admin/user/open_id.jsp(23,0) name = model type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005fmodel_002dcontext_005f0.setModel(User.class);
          int _jspx_eval_aui_005fmodel_002dcontext_005f0 = _jspx_th_aui_005fmodel_002dcontext_005f0.doStartTag();
          if (_jspx_th_aui_005fmodel_002dcontext_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                      .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
              return;
          }
          _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                  .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
          out.write("\n");
          out.write("\n");
          out.write("<h3>");
          if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
              return;
          out.write("</h3>\n");
          out.write("\n");
          if (_jspx_meth_aui_005ffieldset_005f0(_jspx_page_context))
              return;
      } catch (Throwable t) {
          if (!(t instanceof SkipPageException)) {
              out = _jspx_out;
              if (out != null && out.getBufferSize() != 0)
                  try {
                      out.clearBuffer();
                  } catch (java.io.IOException e) {
                  }
              if (_jspx_page_context != null)
                  _jspx_page_context.handlePageException(t);
          }
      } finally {
          _jspxFactory.releasePageContext(_jspx_page_context);
      }
  }

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.user.phone_005fnumbers_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;/*from w  ww  .j  a  va 2  s .  c o  m*/
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long scopeGroupId = null;
        com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        java.lang.Long portletGroupId = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
        permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        javax.portlet.ActionRequest actionRequest = null;
        javax.portlet.ActionResponse actionResponse = null;
        javax.portlet.EventRequest eventRequest = null;
        javax.portlet.EventResponse eventResponse = null;
        javax.portlet.PortletConfig portletConfig = null;
        java.lang.String portletName = null;
        javax.portlet.PortletPreferences portletPreferences = null;
        java.util.Map portletPreferencesValues = null;
        javax.portlet.PortletSession portletSession = null;
        java.util.Map portletSessionScope = null;
        javax.portlet.RenderRequest renderRequest = null;
        javax.portlet.RenderResponse renderResponse = null;
        javax.portlet.ResourceRequest resourceRequest = null;
        javax.portlet.ResourceResponse resourceResponse = null;
        actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
        actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
        eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
        eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
        resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                .findAttribute("resourceResponse");
        out.write('\n');
        out.write('\n');

        WindowState windowState = null;
        PortletMode portletMode = null;

        PortletURL currentURLObj = null;

        if (renderRequest != null) {
            windowState = renderRequest.getWindowState();
            portletMode = renderRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
        } else if (resourceRequest != null) {
            windowState = resourceRequest.getWindowState();
            portletMode = resourceRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
        }

        String currentURL = currentURLObj.toString();
        //String currentURL = PortalUtil.getCurrentURL(request);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String tabs1 = ParamUtil.getString(request, "tabs1");

        boolean showTabs1 = false;
        boolean showActiveUserSelect = true;

        if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
            tabs1 = "users";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
            if (!tabs1.equals("users")) {
                tabs1 = "organizations";
            }
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
            tabs1 = "user-groups";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
            tabs1 = "roles";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
            tabs1 = "password-policies";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
            tabs1 = "settings";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
            tabs1 = "monitoring";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
            tabs1 = "plugins";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
            showTabs1 = true;
        } else {
            showActiveUserSelect = false;

            if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                    || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                tabs1 = "users";
            }
        }

        if (Validator.isNull(tabs1)) {
            tabs1 = "users";
        }

        boolean filterManageableGroups = true;
        boolean filterManageableOrganizations = true;
        boolean filterManageableRoles = true;
        boolean filterManageableUserGroupRoles = true;
        boolean filterManageableUserGroups = true;

        if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableRoles = false;
            filterManageableUserGroupRoles = false;
            filterManageableUserGroups = false;
        } else if (permissionChecker.isCompanyAdmin()) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableUserGroups = false;
        }

        boolean includeSystemPortlets = true;

        int maxNumberOfRolesChecked = 500;

        Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        String className = (String) request.getAttribute("phones.className");
        long classPK = (Long) request.getAttribute("phones.classPK");

        List<Phone> phones = Collections.EMPTY_LIST;

        int[] phonesIndexes = null;

        String phonesIndexesParam = ParamUtil.getString(request, "phonesIndexes");

        if (Validator.isNotNull(phonesIndexesParam)) {
            phones = new ArrayList<Phone>();

            phonesIndexes = StringUtil.split(phonesIndexesParam, 0);

            for (int phonesIndex : phonesIndexes) {
                phones.add(new PhoneImpl());
            }
        } else {

            if (classPK > 0) {
                phones = PhoneServiceUtil.getPhones(className, classPK);

                phonesIndexes = new int[phones.size()];

                for (int i = 0; i < phones.size(); i++) {
                    phonesIndexes[i] = i;
                }
            }

            if (phones.isEmpty()) {
                phones = new ArrayList<Phone>();

                phones.add(new PhoneImpl());

                phonesIndexes = new int[] { 0 };
            }

            if (phonesIndexes == null) {
                phonesIndexes = new int[0];
            }
        }

        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_liferay_002dui_005ferror_002dmarker_005f0(_jspx_page_context))
            return;
        out.write("\r\n");
        out.write("\r\n");
        out.write("<h3>");
        if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
            return;
        out.write("</h3>\r\n");
        out.write("\r\n");
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f0 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f0.setParent(null);
        // /html/portlet/enterprise_admin/common/phone_numbers.jsp(69,0) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0
                .setKey(NoSuchListTypeException.class.getName() + className + ListTypeConstants.PHONE);
        // /html/portlet/enterprise_admin/common/phone_numbers.jsp(69,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0.setMessage("please-select-a-type");
        int _jspx_eval_liferay_002dui_005ferror_005f0 = _jspx_th_liferay_002dui_005ferror_005f0.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f1 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f1.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f1.setParent(null);
        // /html/portlet/enterprise_admin/common/phone_numbers.jsp(70,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1.setException(PhoneNumberException.class);
        // /html/portlet/enterprise_admin/common/phone_numbers.jsp(70,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1.setMessage("please-enter-a-valid-phone-number");
        int _jspx_eval_liferay_002dui_005ferror_005f1 = _jspx_th_liferay_002dui_005ferror_005f1.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
        out.write("\r\n");
        out.write("\r\n");
        //  aui:fieldset
        com.liferay.taglib.aui.FieldsetTag _jspx_th_aui_005ffieldset_005f0 = (com.liferay.taglib.aui.FieldsetTag) _005fjspx_005ftagPool_005faui_005ffieldset
                .get(com.liferay.taglib.aui.FieldsetTag.class);
        _jspx_th_aui_005ffieldset_005f0.setPageContext(_jspx_page_context);
        _jspx_th_aui_005ffieldset_005f0.setParent(null);
        int _jspx_eval_aui_005ffieldset_005f0 = _jspx_th_aui_005ffieldset_005f0.doStartTag();
        if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_aui_005ffieldset_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_aui_005ffieldset_005f0.doInitBody();
            }
            do {
                out.write("\r\n");
                out.write("\r\n");
                out.write("\t");

                for (int i = 0; i < phonesIndexes.length; i++) {
                    int phonesIndex = phonesIndexes[i];

                    Phone phone = phones.get(i);

                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t");
                    //  aui:model-context
                    com.liferay.taglib.aui.ModelContextTag _jspx_th_aui_005fmodel_002dcontext_005f0 = (com.liferay.taglib.aui.ModelContextTag) _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .get(com.liferay.taglib.aui.ModelContextTag.class);
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fmodel_002dcontext_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(81,2) name = bean type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setBean(phone);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(81,2) name = model type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setModel(Phone.class);
                    int _jspx_eval_aui_005fmodel_002dcontext_005f0 = _jspx_th_aui_005fmodel_002dcontext_005f0
                            .doStartTag();
                    if (_jspx_th_aui_005fmodel_002dcontext_005f0
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                                .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t<div class=\"lfr-form-row lfr-form-row-inline\">\r\n");
                    out.write("\t\t\t<div class=\"row-fields\">\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(85,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setName("phoneId" + phonesIndex);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(85,4) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setType("hidden");
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(85,4) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setValue(phone.getPhoneId());
                    int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag();
                    if (_jspx_th_aui_005finput_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f1 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f1.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f1
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(87,4) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f1.setFieldParam("phoneNumber" + phonesIndex);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(87,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f1.setName("number");
                    int _jspx_eval_aui_005finput_005f1 = _jspx_th_aui_005finput_005f1.doStartTag();
                    if (_jspx_th_aui_005finput_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f1);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f1);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f2 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f2.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f2
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(89,4) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setFieldParam("phoneExtension" + phonesIndex);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(89,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setName("extension");
                    int _jspx_eval_aui_005finput_005f2 = _jspx_th_aui_005finput_005f2.doStartTag();
                    if (_jspx_th_aui_005finput_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f2);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f2);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:select
                    com.liferay.taglib.aui.SelectTag _jspx_th_aui_005fselect_005f0 = (com.liferay.taglib.aui.SelectTag) _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                            .get(com.liferay.taglib.aui.SelectTag.class);
                    _jspx_th_aui_005fselect_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fselect_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(91,4) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setLabel("type");
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(91,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setName("phoneTypeId" + phonesIndex);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(91,4) name = listType type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setListType(className + ListTypeConstants.PHONE);
                    int _jspx_eval_aui_005fselect_005f0 = _jspx_th_aui_005fselect_005f0.doStartTag();
                    if (_jspx_th_aui_005fselect_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                                .reuse(_jspx_th_aui_005fselect_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                            .reuse(_jspx_th_aui_005fselect_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f3 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f3.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f3
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = checked type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setChecked(phone.isPrimary());
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = cssClass type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setCssClass("primary-ctrl");
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = id type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setId("phonePrimary" + phonesIndex);
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = inlineLabel type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setInlineLabel("left");
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setLabel("primary");
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setName("phonePrimary");
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setType("radio");
                    // /html/portlet/enterprise_admin/common/phone_numbers.jsp(93,4) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f3.setValue(phonesIndex);
                    int _jspx_eval_aui_005finput_005f3 = _jspx_th_aui_005finput_005f3.doStartTag();
                    if (_jspx_th_aui_005finput_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f3);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f3);
                    out.write("\r\n");
                    out.write("\t\t\t</div>\r\n");
                    out.write("\t\t</div>\r\n");
                    out.write("\r\n");
                    out.write("\t");

                }

                out.write("\r\n");
                out.write("\r\n");
                int evalDoAfterBody = _jspx_th_aui_005ffieldset_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
            }
        }
        if (_jspx_th_aui_005ffieldset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
            return;
        }
        _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_aui_005fscript_005f0(_jspx_page_context))
            return;
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.user.websites_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;//from ww  w .ja  va 2s.  c  om
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long scopeGroupId = null;
        com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        java.lang.Long portletGroupId = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
        permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write('\n');
        out.write('\n');
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        javax.portlet.ActionRequest actionRequest = null;
        javax.portlet.ActionResponse actionResponse = null;
        javax.portlet.EventRequest eventRequest = null;
        javax.portlet.EventResponse eventResponse = null;
        javax.portlet.PortletConfig portletConfig = null;
        java.lang.String portletName = null;
        javax.portlet.PortletPreferences portletPreferences = null;
        java.util.Map portletPreferencesValues = null;
        javax.portlet.PortletSession portletSession = null;
        java.util.Map portletSessionScope = null;
        javax.portlet.RenderRequest renderRequest = null;
        javax.portlet.RenderResponse renderResponse = null;
        javax.portlet.ResourceRequest resourceRequest = null;
        javax.portlet.ResourceResponse resourceResponse = null;
        actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
        actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
        eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
        eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
        resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                .findAttribute("resourceResponse");
        out.write('\n');
        out.write('\n');

        WindowState windowState = null;
        PortletMode portletMode = null;

        PortletURL currentURLObj = null;

        if (renderRequest != null) {
            windowState = renderRequest.getWindowState();
            portletMode = renderRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
        } else if (resourceRequest != null) {
            windowState = resourceRequest.getWindowState();
            portletMode = resourceRequest.getPortletMode();

            currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
        }

        String currentURL = currentURLObj.toString();
        //String currentURL = PortalUtil.getCurrentURL(request);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String tabs1 = ParamUtil.getString(request, "tabs1");

        boolean showTabs1 = false;
        boolean showActiveUserSelect = true;

        if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
            tabs1 = "users";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
            if (!tabs1.equals("users")) {
                tabs1 = "organizations";
            }
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
            tabs1 = "user-groups";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
            tabs1 = "roles";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
            tabs1 = "password-policies";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
            tabs1 = "settings";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
            tabs1 = "monitoring";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
            tabs1 = "plugins";
        } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
            showTabs1 = true;
        } else {
            showActiveUserSelect = false;

            if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                    || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                tabs1 = "users";
            }
        }

        if (Validator.isNull(tabs1)) {
            tabs1 = "users";
        }

        boolean filterManageableGroups = true;
        boolean filterManageableOrganizations = true;
        boolean filterManageableRoles = true;
        boolean filterManageableUserGroupRoles = true;
        boolean filterManageableUserGroups = true;

        if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableRoles = false;
            filterManageableUserGroupRoles = false;
            filterManageableUserGroups = false;
        } else if (permissionChecker.isCompanyAdmin()) {
            filterManageableGroups = false;
            filterManageableOrganizations = false;
            filterManageableUserGroups = false;
        }

        boolean includeSystemPortlets = true;

        int maxNumberOfRolesChecked = 500;

        Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        out.write("\r\n");
        out.write("\r\n");

        String className = (String) request.getAttribute("websites.className");
        long classPK = (Long) request.getAttribute("websites.classPK");

        List<Website> websites = Collections.EMPTY_LIST;

        int[] websitesIndexes = null;

        String websitesIndexesParam = ParamUtil.getString(request, "websitesIndexes");

        if (Validator.isNotNull(websitesIndexesParam)) {
            websites = new ArrayList<Website>();

            websitesIndexes = StringUtil.split(websitesIndexesParam, 0);

            for (int websitesIndex : websitesIndexes) {
                websites.add(new WebsiteImpl());
            }
        } else {
            if (classPK > 0) {
                websites = WebsiteServiceUtil.getWebsites(className, classPK);

                websitesIndexes = new int[websites.size()];

                for (int i = 0; i < websites.size(); i++) {
                    websitesIndexes[i] = i;
                }
            }

            if (websites.isEmpty()) {
                websites = new ArrayList<Website>();

                websites.add(new WebsiteImpl());

                websitesIndexes = new int[] { 0 };
            }

            if (websitesIndexes == null) {
                websitesIndexes = new int[0];
            }
        }

        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_liferay_002dui_005ferror_002dmarker_005f0(_jspx_page_context))
            return;
        out.write("\r\n");
        out.write("\r\n");
        out.write("<h3>");
        if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
            return;
        out.write("</h3>\r\n");
        out.write("\r\n");
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f0 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f0.setParent(null);
        // /html/portlet/enterprise_admin/common/websites.jsp(67,0) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0
                .setKey(NoSuchListTypeException.class.getName() + className + ListTypeConstants.WEBSITE);
        // /html/portlet/enterprise_admin/common/websites.jsp(67,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f0.setMessage("please-select-a-type");
        int _jspx_eval_liferay_002dui_005ferror_005f0 = _jspx_th_liferay_002dui_005ferror_005f0.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fkey_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
        out.write('\r');
        out.write('\n');
        //  liferay-ui:error
        com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f1 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .get(com.liferay.taglib.ui.ErrorTag.class);
        _jspx_th_liferay_002dui_005ferror_005f1.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ferror_005f1.setParent(null);
        // /html/portlet/enterprise_admin/common/websites.jsp(68,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1.setException(WebsiteURLException.class);
        // /html/portlet/enterprise_admin/common/websites.jsp(68,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ferror_005f1.setMessage("please-enter-a-valid-url");
        int _jspx_eval_liferay_002dui_005ferror_005f1 = _jspx_th_liferay_002dui_005ferror_005f1.doStartTag();
        if (_jspx_th_liferay_002dui_005ferror_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
        out.write("\r\n");
        out.write("\r\n");
        //  aui:fieldset
        com.liferay.taglib.aui.FieldsetTag _jspx_th_aui_005ffieldset_005f0 = (com.liferay.taglib.aui.FieldsetTag) _005fjspx_005ftagPool_005faui_005ffieldset
                .get(com.liferay.taglib.aui.FieldsetTag.class);
        _jspx_th_aui_005ffieldset_005f0.setPageContext(_jspx_page_context);
        _jspx_th_aui_005ffieldset_005f0.setParent(null);
        int _jspx_eval_aui_005ffieldset_005f0 = _jspx_th_aui_005ffieldset_005f0.doStartTag();
        if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_aui_005ffieldset_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_aui_005ffieldset_005f0.doInitBody();
            }
            do {
                out.write("\r\n");
                out.write("\r\n");
                out.write("\t");

                for (int i = 0; i < websitesIndexes.length; i++) {
                    int websitesIndex = websitesIndexes[i];

                    Website website = websites.get(i);

                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t");
                    //  aui:model-context
                    com.liferay.taglib.aui.ModelContextTag _jspx_th_aui_005fmodel_002dcontext_005f0 = (com.liferay.taglib.aui.ModelContextTag) _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .get(com.liferay.taglib.aui.ModelContextTag.class);
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fmodel_002dcontext_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/websites.jsp(79,2) name = bean type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setBean(website);
                    // /html/portlet/enterprise_admin/common/websites.jsp(79,2) name = model type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fmodel_002dcontext_005f0.setModel(Website.class);
                    int _jspx_eval_aui_005fmodel_002dcontext_005f0 = _jspx_th_aui_005fmodel_002dcontext_005f0
                            .doStartTag();
                    if (_jspx_th_aui_005fmodel_002dcontext_005f0
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                                .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fmodel_002dcontext_0026_005fmodel_005fbean_005fnobody
                            .reuse(_jspx_th_aui_005fmodel_002dcontext_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t<div class=\"lfr-form-row lfr-form-row-inline\">\r\n");
                    out.write("\t\t\t<div class=\"row-fields\">\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005ftype_005fname_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/websites.jsp(84,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setName("websiteId" + websitesIndex);
                    // /html/portlet/enterprise_admin/common/websites.jsp(84,4) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f0.setType("hidden");
                    int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag();
                    if (_jspx_th_aui_005finput_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005ftype_005fname_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005ftype_005fname_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f1 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f1.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f1
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/websites.jsp(86,4) name = fieldParam type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f1.setFieldParam("websiteUrl" + websitesIndex);
                    // /html/portlet/enterprise_admin/common/websites.jsp(86,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f1.setName("url");
                    int _jspx_eval_aui_005finput_005f1 = _jspx_th_aui_005finput_005f1.doStartTag();
                    if (_jspx_th_aui_005finput_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f1);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fname_005ffieldParam_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f1);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:select
                    com.liferay.taglib.aui.SelectTag _jspx_th_aui_005fselect_005f0 = (com.liferay.taglib.aui.SelectTag) _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                            .get(com.liferay.taglib.aui.SelectTag.class);
                    _jspx_th_aui_005fselect_005f0.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fselect_005f0
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/websites.jsp(88,4) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setLabel("type");
                    // /html/portlet/enterprise_admin/common/websites.jsp(88,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setName("websiteTypeId" + websitesIndex);
                    // /html/portlet/enterprise_admin/common/websites.jsp(88,4) name = listType type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fselect_005f0.setListType(className + ListTypeConstants.WEBSITE);
                    int _jspx_eval_aui_005fselect_005f0 = _jspx_th_aui_005fselect_005f0.doStartTag();
                    if (_jspx_th_aui_005fselect_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                                .reuse(_jspx_th_aui_005fselect_005f0);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fselect_0026_005fname_005flistType_005flabel_005fnobody
                            .reuse(_jspx_th_aui_005fselect_005f0);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t");
                    //  aui:input
                    com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f2 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                            .get(com.liferay.taglib.aui.InputTag.class);
                    _jspx_th_aui_005finput_005f2.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005finput_005f2
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005ffieldset_005f0);
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = checked type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setChecked(website.isPrimary());
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = cssClass type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setCssClass("primary-ctrl");
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = id type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setId("websitePrimary" + websitesIndex);
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = inlineLabel type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setInlineLabel("left");
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = label type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setLabel("primary");
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setName("websitePrimary");
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setType("radio");
                    // /html/portlet/enterprise_admin/common/websites.jsp(90,4) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005finput_005f2.setValue(websitesIndex);
                    int _jspx_eval_aui_005finput_005f2 = _jspx_th_aui_005finput_005f2.doStartTag();
                    if (_jspx_th_aui_005finput_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                                .reuse(_jspx_th_aui_005finput_005f2);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005flabel_005finlineLabel_005fid_005fcssClass_005fchecked_005fnobody
                            .reuse(_jspx_th_aui_005finput_005f2);
                    out.write("\r\n");
                    out.write("\t\t\t</div>\r\n");
                    out.write("\t\t</div>\r\n");
                    out.write("\r\n");
                    out.write("\t");

                }

                out.write("\r\n");
                out.write("\r\n");
                int evalDoAfterBody = _jspx_th_aui_005ffieldset_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
            if (_jspx_eval_aui_005ffieldset_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
            }
        }
        if (_jspx_th_aui_005ffieldset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
            return;
        }
        _005fjspx_005ftagPool_005faui_005ffieldset.reuse(_jspx_th_aui_005ffieldset_005f0);
        out.write("\r\n");
        out.write("\r\n");
        if (_jspx_meth_aui_005fscript_005f0(_jspx_page_context))
            return;
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.portlet.enterprise_005fadmin.view_005froles_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
          throws java.io.IOException, ServletException {

      PageContext pageContext = null;
      HttpSession session = null;/* w w w.  jav a 2  s.  c  o m*/
      ServletContext application = null;
      ServletConfig config = null;
      JspWriter out = null;
      Object page = this;
      JspWriter _jspx_out = null;
      PageContext _jspx_page_context = null;

      try {
          response.setContentType("text/html; charset=UTF-8");
          pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
          _jspx_page_context = pageContext;
          application = pageContext.getServletContext();
          config = pageContext.getServletConfig();
          session = pageContext.getSession();
          out = pageContext.getOut();
          _jspx_out = out;

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          //  liferay-theme:defineObjects
          com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.theme.DefineObjectsTag.class);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
          com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
          com.liferay.portal.model.Company company = null;
          com.liferay.portal.model.Account account = null;
          com.liferay.portal.model.User user = null;
          com.liferay.portal.model.User realUser = null;
          com.liferay.portal.model.Contact contact = null;
          com.liferay.portal.model.Layout layout = null;
          java.util.List layouts = null;
          java.lang.Long plid = null;
          com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
          java.lang.Long scopeGroupId = null;
          com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
          java.util.Locale locale = null;
          java.util.TimeZone timeZone = null;
          com.liferay.portal.model.Theme theme = null;
          com.liferay.portal.model.ColorScheme colorScheme = null;
          com.liferay.portal.theme.PortletDisplay portletDisplay = null;
          java.lang.Long portletGroupId = null;
          themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
          company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
          account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
          user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
          realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
          contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
          layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
          layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
          plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
          layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                  .findAttribute("layoutTypePortlet");
          scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
          permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                  .findAttribute("permissionChecker");
          locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
          timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
          theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
          colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
          portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                  .findAttribute("portletDisplay");
          portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');
          //  portlet:defineObjects
          com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
          _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
          _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
          int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
          if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                      .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                  .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
          javax.portlet.ActionRequest actionRequest = null;
          javax.portlet.ActionResponse actionResponse = null;
          javax.portlet.EventRequest eventRequest = null;
          javax.portlet.EventResponse eventResponse = null;
          javax.portlet.PortletConfig portletConfig = null;
          java.lang.String portletName = null;
          javax.portlet.PortletPreferences portletPreferences = null;
          java.util.Map portletPreferencesValues = null;
          javax.portlet.PortletSession portletSession = null;
          java.util.Map portletSessionScope = null;
          javax.portlet.RenderRequest renderRequest = null;
          javax.portlet.RenderResponse renderResponse = null;
          javax.portlet.ResourceRequest resourceRequest = null;
          javax.portlet.ResourceResponse resourceResponse = null;
          actionRequest = (javax.portlet.ActionRequest) _jspx_page_context.findAttribute("actionRequest");
          actionResponse = (javax.portlet.ActionResponse) _jspx_page_context.findAttribute("actionResponse");
          eventRequest = (javax.portlet.EventRequest) _jspx_page_context.findAttribute("eventRequest");
          eventResponse = (javax.portlet.EventResponse) _jspx_page_context.findAttribute("eventResponse");
          portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
          portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
          portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                  .findAttribute("portletPreferences");
          portletPreferencesValues = (java.util.Map) _jspx_page_context.findAttribute("portletPreferencesValues");
          portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
          portletSessionScope = (java.util.Map) _jspx_page_context.findAttribute("portletSessionScope");
          renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
          renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
          resourceRequest = (javax.portlet.ResourceRequest) _jspx_page_context.findAttribute("resourceRequest");
          resourceResponse = (javax.portlet.ResourceResponse) _jspx_page_context
                  .findAttribute("resourceResponse");
          out.write('\n');
          out.write('\n');

          WindowState windowState = null;
          PortletMode portletMode = null;

          PortletURL currentURLObj = null;

          if (renderRequest != null) {
              windowState = renderRequest.getWindowState();
              portletMode = renderRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);
          } else if (resourceRequest != null) {
              windowState = resourceRequest.getWindowState();
              portletMode = resourceRequest.getPortletMode();

              currentURLObj = PortletURLUtil.getCurrent(resourceRequest, resourceResponse);
          }

          String currentURL = currentURLObj.toString();
          //String currentURL = PortalUtil.getCurrentURL(request);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");

          String tabs1 = ParamUtil.getString(request, "tabs1");

          boolean showTabs1 = false;
          boolean showActiveUserSelect = true;

          if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) {
              tabs1 = "users";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS)) {
              if (!tabs1.equals("users")) {
                  tabs1 = "organizations";
              }
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USER_GROUPS) && !tabs1.equals("users")) {
              tabs1 = "user-groups";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ROLES) && !tabs1.equals("users")) {
              tabs1 = "roles";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PASSWORD_POLICIES)) {
              tabs1 = "password-policies";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_SETTINGS)) {
              tabs1 = "settings";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_MONITORING)) {
              tabs1 = "monitoring";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN_PLUGINS)) {
              tabs1 = "plugins";
          } else if (portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) {
              showTabs1 = true;
          } else {
              showActiveUserSelect = false;

              if (tabs1.equals("roles") || tabs1.equals("password-policies") || tabs1.equals("settings")
                      || tabs1.equals("monitoring") || tabs1.equals("plugins")) {
                  tabs1 = "users";
              }
          }

          if (Validator.isNull(tabs1)) {
              tabs1 = "users";
          }

          boolean filterManageableGroups = true;
          boolean filterManageableOrganizations = true;
          boolean filterManageableRoles = true;
          boolean filterManageableUserGroupRoles = true;
          boolean filterManageableUserGroups = true;

          if (portletName.equals(PortletKeys.MY_ACCOUNT)) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableRoles = false;
              filterManageableUserGroupRoles = false;
              filterManageableUserGroups = false;
          } else if (permissionChecker.isCompanyAdmin()) {
              filterManageableGroups = false;
              filterManageableOrganizations = false;
              filterManageableUserGroups = false;
          }

          boolean includeSystemPortlets = true;

          int maxNumberOfRolesChecked = 500;

          Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);

          out.write('\n');
          out.write('\n');

          /**
           * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
           *
           * This library is free software; you can redistribute it and/or modify it under
           * the terms of the GNU Lesser General Public License as published by the Free
           * Software Foundation; either version 2.1 of the License, or (at your option)
           * any later version.
           *
           * This library is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
           * details.
           */

          out.write('\n');
          out.write('\n');

          PortletURL portletURL = (PortletURL) request.getAttribute("view.jsp-portletURL");

          out.write('\n');
          out.write('\n');
          //  liferay-ui:error
          com.liferay.taglib.ui.ErrorTag _jspx_th_liferay_002dui_005ferror_005f0 = (com.liferay.taglib.ui.ErrorTag) _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                  .get(com.liferay.taglib.ui.ErrorTag.class);
          _jspx_th_liferay_002dui_005ferror_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005ferror_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(23,0) name = exception type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005ferror_005f0.setException(RequiredRoleException.class);
          // /html/portlet/enterprise_admin/view_roles.jsp(23,0) name = message type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005ferror_005f0.setMessage("you-cannot-delete-a-system-role");
          int _jspx_eval_liferay_002dui_005ferror_005f0 = _jspx_th_liferay_002dui_005ferror_005f0.doStartTag();
          if (_jspx_th_liferay_002dui_005ferror_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                      .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005ferror_0026_005fmessage_005fexception_005fnobody
                  .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
          out.write('\n');
          out.write('\n');
          if (_jspx_meth_liferay_002dutil_005finclude_005f0(_jspx_page_context))
              return;
          out.write('\n');
          out.write('\n');

          RoleSearch searchContainer = new RoleSearch(renderRequest, portletURL);

          List headerNames = searchContainer.getHeaderNames();

          headerNames.add(StringPool.BLANK);

          out.write('\n');
          out.write('\n');
          //  liferay-ui:search-form
          com.liferay.taglib.ui.SearchFormTag _jspx_th_liferay_002dui_005fsearch_002dform_005f0 = (com.liferay.taglib.ui.SearchFormTag) _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody
                  .get(com.liferay.taglib.ui.SearchFormTag.class);
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(37,0) name = page type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0
                  .setPage("/html/portlet/enterprise_admin/role_search.jsp");
          // /html/portlet/enterprise_admin/view_roles.jsp(37,0) name = searchContainer type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002dform_005f0.setSearchContainer(searchContainer);
          int _jspx_eval_liferay_002dui_005fsearch_002dform_005f0 = _jspx_th_liferay_002dui_005fsearch_002dform_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dui_005fsearch_002dform_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody
                      .reuse(_jspx_th_liferay_002dui_005fsearch_002dform_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002dform_0026_005fsearchContainer_005fpage_005fnobody
                  .reuse(_jspx_th_liferay_002dui_005fsearch_002dform_005f0);
          out.write('\n');
          out.write('\n');

          RoleSearchTerms searchTerms = (RoleSearchTerms) searchContainer.getSearchTerms();

          int total = RoleLocalServiceUtil.searchCount(company.getCompanyId(), searchTerms.getName(),
                  searchTerms.getDescription(), searchTerms.getTypesObj());

          searchContainer.setTotal(total);

          List results = RoleLocalServiceUtil.search(company.getCompanyId(), searchTerms.getName(),
                  searchTerms.getDescription(), searchTerms.getTypesObj(), searchContainer.getStart(),
                  searchContainer.getEnd(), searchContainer.getOrderByComparator());

          searchContainer.setResults(results);

          portletURL.setParameter(searchContainer.getCurParam(), String.valueOf(searchContainer.getCur()));

          out.write('\n');
          out.write('\n');
          //  aui:input
          com.liferay.taglib.aui.InputTag _jspx_th_aui_005finput_005f0 = (com.liferay.taglib.aui.InputTag) _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                  .get(com.liferay.taglib.aui.InputTag.class);
          _jspx_th_aui_005finput_005f0.setPageContext(_jspx_page_context);
          _jspx_th_aui_005finput_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(56,0) name = name type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005finput_005f0.setName("rolesRedirect");
          // /html/portlet/enterprise_admin/view_roles.jsp(56,0) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005finput_005f0.setType("hidden");
          // /html/portlet/enterprise_admin/view_roles.jsp(56,0) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_aui_005finput_005f0.setValue(portletURL.toString());
          int _jspx_eval_aui_005finput_005f0 = _jspx_th_aui_005finput_005f0.doStartTag();
          if (_jspx_th_aui_005finput_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                      .reuse(_jspx_th_aui_005finput_005f0);
              return;
          }
          _005fjspx_005ftagPool_005faui_005finput_0026_005fvalue_005ftype_005fname_005fnobody
                  .reuse(_jspx_th_aui_005finput_005f0);
          out.write("\n");
          out.write("\n");
          out.write("<div class=\"separator\"><!-- --></div>\n");
          out.write("\n");

          List resultRows = searchContainer.getResultRows();

          for (int i = 0; i < results.size(); i++) {
              Role role = (Role) results.get(i);

              role = role.toEscapedModel();

              ResultRow row = new ResultRow(role, role.getRoleId(), i);

              PortletURL rowURL = null;

              if (RolePermissionUtil.contains(permissionChecker, role.getRoleId(), ActionKeys.UPDATE)) {
                  rowURL = renderResponse.createRenderURL();

                  rowURL.setParameter("struts_action", "/enterprise_admin/edit_role");
                  rowURL.setParameter("redirect", searchContainer.getIteratorURL().toString());
                  rowURL.setParameter("roleId", String.valueOf(role.getRoleId()));
              }

              // Name

              row.addText(HtmlUtil.escape(role.getTitle(locale)), rowURL);

              // Type

              row.addText(LanguageUtil.get(pageContext, role.getTypeLabel()), rowURL);

              // Subtype

              if ((PropsValues.ROLES_COMMUNITY_SUBTYPES.length > 0)
                      || (PropsValues.ROLES_ORGANIZATION_SUBTYPES.length > 0)
                      || (PropsValues.ROLES_REGULAR_SUBTYPES.length > 0)) {

                  row.addText(LanguageUtil.get(pageContext, role.getSubtype()), rowURL);
              }

              // Description

              row.addText(role.getDescription(), rowURL);

              // Action

              row.addJSP("right", SearchEntry.DEFAULT_VALIGN, "/html/portlet/enterprise_admin/role_action.jsp");

              // CSS

              row.setClassName(EnterpriseAdminUtil.getCssClassName(role));
              row.setClassHoverName(EnterpriseAdminUtil.getCssClassName(role));

              // Add result row

              resultRows.add(row);
          }

          out.write('\n');
          out.write('\n');
          //  liferay-ui:search-iterator
          com.liferay.taglib.ui.SearchIteratorTag _jspx_th_liferay_002dui_005fsearch_002diterator_005f0 = (com.liferay.taglib.ui.SearchIteratorTag) _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody
                  .get(com.liferay.taglib.ui.SearchIteratorTag.class);
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setPageContext(_jspx_page_context);
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setParent(null);
          // /html/portlet/enterprise_admin/view_roles.jsp(116,0) name = searchContainer type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
          _jspx_th_liferay_002dui_005fsearch_002diterator_005f0.setSearchContainer(searchContainer);
          int _jspx_eval_liferay_002dui_005fsearch_002diterator_005f0 = _jspx_th_liferay_002dui_005fsearch_002diterator_005f0
                  .doStartTag();
          if (_jspx_th_liferay_002dui_005fsearch_002diterator_005f0
                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody
                      .reuse(_jspx_th_liferay_002dui_005fsearch_002diterator_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fliferay_002dui_005fsearch_002diterator_0026_005fsearchContainer_005fnobody
                  .reuse(_jspx_th_liferay_002dui_005fsearch_002diterator_005f0);
      } catch (Throwable t) {
          if (!(t instanceof SkipPageException)) {
              out = _jspx_out;
              if (out != null && out.getBufferSize() != 0)
                  try {
                      out.clearBuffer();
                  } catch (java.io.IOException e) {
                  }
              if (_jspx_page_context != null)
                  _jspx_page_context.handlePageException(t);
          }
      } finally {
          _jspxFactory.releasePageContext(_jspx_page_context);
      }
  }

From source file:org.apache.jsp.html.portlet.ext.ecommerce.admin.view_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;//from  w  w  w.  j  a va  2  s . c o  m
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        _jspxFactory = JspFactory.getDefaultFactory();
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        out.write('\n');

        /**
         * Copyright (c) 2000-2006 Liferay, Inc. All rights reserved.
         *
         * Permission is hereby granted, free of charge, to any person obtaining a copy
         * of this software and associated documentation files (the "Software"), to deal
         * in the Software without restriction, including without limitation the rights
         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         * copies of the Software, and to permit persons to whom the Software is
         * furnished to do so, subject to the following conditions:
         *
         * The above copyright notice and this permission notice shall be included in
         * all copies or substantial portions of the Software.
         *
         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         * SOFTWARE.
         */

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
         *
         * Permission is hereby granted, free of charge, to any person obtaining a copy
         * of this software and associated documentation files (the "Software"), to deal
         * in the Software without restriction, including without limitation the rights
         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         * copies of the Software, and to permit persons to whom the Software is
         * furnished to do so, subject to the following conditions:
         *
         * The above copyright notice and this permission notice shall be included in
         * all copies or substantial portions of the Software.
         *
         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         * SOFTWARE.
         */

        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long portletGroupId = null;
        com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        permissionChecker = (com.liferay.portal.kernel.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        out.write("\r\n");
        out.write("\r\n");

        /**
         * Copyright (c) 2000-2006 Liferay, LLC. All rights reserved.
         *
         * Permission is hereby granted, free of charge, to any person obtaining a copy
         * of this software and associated documentation files (the "Software"), to deal
         * in the Software without restriction, including without limitation the rights
         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         * copies of the Software, and to permit persons to whom the Software is
         * furnished to do so, subject to the following conditions:
         *
         * The above copyright notice and this permission notice shall be included in
         * all copies or substantial portions of the Software.
         *
         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         * SOFTWARE.
         */

        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        //@ page import="com.liferay.portal.kernel.util.PortletExtKeys" 
        out.write("\r\n");
        out.write("\r\n");

        String contextPath = PropsUtil.get(PropsUtil.PORTAL_CTX);
        if (contextPath.equals("/")) {
            contextPath = "";
        }

        out.write('\r');
        out.write('\n');
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write('\n');
        out.write('\n');
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f0 = _jspx_th_portlet_005fdefineObjects_005f0.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f0);
        javax.portlet.PortletConfig portletConfig = null;
        java.lang.String portletName = null;
        javax.portlet.PortletPreferences portletPreferences = null;
        javax.portlet.PortletSession portletSession = null;
        javax.portlet.RenderRequest renderRequest = null;
        javax.portlet.RenderResponse renderResponse = null;
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        out.write('\n');
        out.write('\n');

        PortletURL currentURLObj = PortletURLUtil.getCurrent(renderRequest, renderResponse);

        //String currentURL = currentURLObj.toString();
        String currentURL = PortalUtil.getCurrentURL(request);

        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2006 Liferay, LLC. All rights reserved.
         *
         * Permission is hereby granted, free of charge, to any person obtaining a copy
         * of this software and associated documentation files (the "Software"), to deal
         * in the Software without restriction, including without limitation the rights
         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         * copies of the Software, and to permit persons to whom the Software is
         * furnished to do so, subject to the following conditions:
         *
         * The above copyright notice and this permission notice shall be included in
         * all copies or substantial portions of the Software.
         *
         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         * SOFTWARE.
         */

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String defLang = com.liferay.portal.util.PropsUtil.get("locale.default");
        //String redirect = (String)request.getParameter("redirect");
        PortletRequest portletRequest = (PortletRequest) request
                .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_REQUEST);
        String portletID = null;
        if (portletRequest instanceof RenderRequest) {
            RenderRequestImpl req = (RenderRequestImpl) portletRequest;
            portletID = req.getPortletName();
        } else {
            ActionRequestImpl req = (ActionRequestImpl) portletRequest;
            portletID = req.getPortletName();
        }

        boolean managetopic = true;

        Boolean managetopics = (Boolean) request.getAttribute("managetopics");

        if (managetopics != null) {
            managetopic = managetopics.booleanValue();
        } else {
            String isTopicPermissions = GetterUtil.getString(PropsUtil.get("gn.topics.permissions"), "off");
            int isTopics = 0;
            if (request.getAttribute("isTopics") != null)
                isTopics = ((Integer) request.getAttribute("isTopics")).intValue();
            String topicid = (String) request.getParameter("topicid");

            if (isTopicPermissions.equals("on") && isTopics != GnPortletSetting.TOPICS_ENABLED_FALSE) {

                if (topicid != null && !topicid.equals("")
                        && !com.ext.portlet.topics.service.permission.GnTopicPermission.contains(
                                permissionChecker, new Integer(topicid),
                                com.liferay.portal.kernel.security.permission.ActionExtKeys.MANAGECONTENT))
                    managetopic = false;

            }
        }

        out.write('\n');
        out.write('\n');

        boolean hasAdmin = PortletPermissionUtil.contains(permissionChecker, plid, portletID,
                ActionExtKeys.ADMINISTRATE) && managetopic;
        boolean hasPublish = PermissionsService.getInstance()
                .isPortletPublishingEnabled(PortalUtil.getCompanyId(request), portletID)
                && PortletPermissionUtil.contains(permissionChecker, plid, portletID, ActionExtKeys.PUBLISH)
                && managetopic;
        boolean hasViewUnPublished = hasPublish; //PermissionsService.getInstance().isPortletPublishingEnabled(portletID) && PortletPermission.contains(permissionChecker, plid, portletID, ActionExtKeys.VIEW_UNPUBLISHED) && managetopic;
        boolean hasAdd = PortletPermissionUtil.contains(permissionChecker, plid, portletID, ActionExtKeys.ADD)
                && managetopic;
        boolean hasEdit = PortletPermissionUtil.contains(permissionChecker, plid, portletID, ActionExtKeys.EDIT)
                && managetopic;
        boolean hasDelete = PortletPermissionUtil.contains(permissionChecker, plid, portletID,
                ActionExtKeys.DELETE) && managetopic;

        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");

        PortletPreferences prefs = renderRequest.getPreferences();

        String portletResource = ParamUtil.getString(request, "portletResource");

        if (Validator.isNotNull(portletResource)) {
            prefs = PortletPreferencesFactoryUtil.getPortletSetup(request, portletResource, true, true);
        }

        int instanceTopicId = GetterUtil.getInteger(prefs.getValue("topic-id", StringPool.BLANK));
        String instancePortletSearch = GetterUtil.getString(prefs.getValue("portlet-search", StringPool.BLANK));
        String instancePortletBrowseType = GetterUtil
                .getString(prefs.getValue("browse-type", StringPool.BLANK));
        String instancePortletListStyle = ParamUtil.getString(request, "listStyle",
                prefs.getValue("list-style", StringPool.BLANK));
        String instancePortletTopicStyle = ParamUtil.getString(request, "topicStyle",
                prefs.getValue("topic-style", StringPool.BLANK));

        String instancePortletShowRelContent = prefs.getValue("showRelContent", StringPool.BLANK);
        String instancePortletShowRelContentDescription = prefs.getValue("showRelContentDescription",
                StringPool.BLANK);
        com.ext.portlet.base.contentrel.ContentRelUtil relUtil = com.ext.portlet.base.contentrel.ContentRelUtil
                .getInstance();
        String[] classNames = relUtil.getPortletClassNames();
        String[] portletNames = relUtil.getPortletNames();

        String instanceYearsStartYear = GetterUtil
                .getString(prefs.getValue("years_startYear", StringPool.BLANK));
        boolean instanceYearsShowFuture = GetterUtil.getBoolean(prefs.getValue("years_showFuture", "true"),
                true);
        boolean instanceYearsShowEmptyYears = GetterUtil
                .getBoolean(prefs.getValue("years_showEmptyYears", "true"), true);

        boolean topicsOnOff = GetterUtil.getBoolean(prefs.getValue("topicsOnOff", "false"), false);
        String topicFieldSetkey = GetterUtil.getString(prefs.getValue("topicFieldSetkey", StringPool.BLANK));

        String instanceUseTopicNav = GetterUtil.getString(prefs.getValue("use-topic-nav", "no"));

        boolean enableRatings = GetterUtil.getBoolean(prefs.getValue("enableRatings", StringPool.BLANK), false);
        boolean enableComments = GetterUtil.getBoolean(prefs.getValue("enableComments", StringPool.BLANK),
                false);

        String instanceEmbedMedia = GetterUtil.getString(prefs.getValue("embed_media", "no"));
        String instanceRelEmbedMedia = GetterUtil.getString(prefs.getValue("embed_rel_media", "no"));

        boolean showOnlyMine = GetterUtil.getBoolean(prefs.getValue("showOnlyMine", StringPool.BLANK), false);
        boolean notifyPublisher = GetterUtil.getBoolean(prefs.getValue("notifyPublisher", StringPool.BLANK),
                false);

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  portlet:defineObjects
        com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f1 = (com.liferay.taglib.portlet.DefineObjectsTag) _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.portlet.DefineObjectsTag.class);
        _jspx_th_portlet_005fdefineObjects_005f1.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005fdefineObjects_005f1.setParent(null);
        int _jspx_eval_portlet_005fdefineObjects_005f1 = _jspx_th_portlet_005fdefineObjects_005f1.doStartTag();
        if (_jspx_th_portlet_005fdefineObjects_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_portlet_005fdefineObjects_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005fdefineObjects_005fnobody
                .reuse(_jspx_th_portlet_005fdefineObjects_005f1);
        portletConfig = (javax.portlet.PortletConfig) _jspx_page_context.findAttribute("portletConfig");
        portletName = (java.lang.String) _jspx_page_context.findAttribute("portletName");
        portletPreferences = (javax.portlet.PortletPreferences) _jspx_page_context
                .findAttribute("portletPreferences");
        portletSession = (javax.portlet.PortletSession) _jspx_page_context.findAttribute("portletSession");
        renderRequest = (javax.portlet.RenderRequest) _jspx_page_context.findAttribute("renderRequest");
        renderResponse = (javax.portlet.RenderResponse) _jspx_page_context.findAttribute("renderResponse");
        out.write('\n');
        out.write('\n');

        String redirect = (String) request.getParameter("redirect");

        long rootPlid1 = GetterUtil.getLong(prefs.getValue("root-plid", StringPool.BLANK));

        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        String propertiesNamespace = GetterUtil.getString(prefs.getValue("propertiesNamespace", "eshop"));
        out.write("\r\n");
        out.write("\r\n");
        out.write("<form action=\"");
        if (_jspx_meth_portlet_005factionURL_005f0(_jspx_page_context))
            return;
        out.write("\"  method=\"post\" enctype=\"multipart/form-data\" >\r\n");
        out.write("<table>\t\t\r\n");
        out.write("\t");

        List headerNames = new ArrayList();

        headerNames.add("property");
        headerNames.add("value");

        Map portalProps = new TreeMap();

        portalProps.putAll(GnPropsUtil.getProperties(propertiesNamespace));

        List results = ListUtil.fromCollection(portalProps.entrySet());

        for (int i = 0; i < results.size(); i++) {
            Map.Entry entry = (Map.Entry) results.get(i);

            String property = (String) entry.getKey();
            String value = (String) entry.getValue();
            if (!property.equals("include-and-override")) {

                out.write("\r\n");
                out.write("\t\t\t<tr><td>");
                out.print(LanguageUtil.get(pageContext, property));
                out.write(" : </td><td><input name=\"");
                out.print(property);
                out.write("\" value=\"");
                out.print(value);
                out.write("\" type=\"text\"></td></tr>\r\n");
                out.write("\t");

            }
        }

        out.write("\r\n");
        out.write("\t\t\t<tr><td>\t\r\n");
        out.write("\t\t\t\t<input type=\"hidden\" name=\"submitted\" value=\"1\">\r\n");
        out.write("\t\t\t\t<input type=\"submit\" value=\"");
        out.print(LanguageUtil.get(pageContext, "save"));
        out.write("\">\r\n");
        out.write("\t\t\t\t</td>\r\n");
        out.write("\t\t\t</tr>\r\n");
        out.write("</table>\r\n");
        out.write("</form>\r\n");
        out.write("\r\n");
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                out.clearBuffer();
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        if (_jspxFactory != null)
            _jspxFactory.releasePageContext(_jspx_page_context);
    }
}