Example usage for com.liferay.portal.kernel.util JavaConstants JAVAX_PORTLET_REQUEST

List of usage examples for com.liferay.portal.kernel.util JavaConstants JAVAX_PORTLET_REQUEST

Introduction

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

Prototype

String JAVAX_PORTLET_REQUEST

To view the source code for com.liferay.portal.kernel.util JavaConstants JAVAX_PORTLET_REQUEST.

Click Source Link

Usage

From source file:it.webscience.kpeople.web.portlet.report.action.ViewAction.java

License:Open Source License

/**
 * metodo render./*from  www .jav a  2  s  .  co m*/
 * @param mapping
 *            The ActionMapping used to select this instance
 * @param form
 *            The optional ActionForm bean for this request (if any)
 * @param req
 *            The non-HTTP request we are processing
 * @param res
 *            The non-HTTP response we are creating
 * @return action forward
 * @throws SystemException
 * @throws PortalException
 */
private ActionForward render(final ActionMapping mapping, final ActionForm form, final HttpServletRequest req,
        final HttpServletResponse res) throws PortalException, SystemException {

    String src = getSrc(req);

    String hpmUserId = KpeopleUserUtil.getCurrUserHpmId(req);
    currUserId = KpeopleUserUtil.getCurrUserId(req);

    String hpmProcessId = ParamUtil.getString(req, "processId");

    PortletRequest aReq = (PortletRequest) req.getAttribute(JavaConstants.JAVAX_PORTLET_REQUEST);

    PortletPreferences preferences = aReq.getPreferences();

    String widthChart = preferences.getValue("widthChart", "");
    String heightChart = preferences.getValue("heightChart", "");

    String actionValue = preferences.getValue("reportType",
            ReportBrowserConstants.CHART_COMMUNICAZIONI_DESTINATARIO);

    if (actionValue.equalsIgnoreCase(ReportBrowserConstants.CHART_COMMUNICAZIONI_DESTINATARIO)
            || actionValue.equalsIgnoreCase(ReportBrowserConstants.CHART_COMMUNICAZIONI_MITTENTE)) {

        try {

            popolaForm(req);

            String ordinaPerRadio = ParamUtil.getString(req, ReportBrowserConstants.ORDINA_PER_RADIO);
            String idProcessType = null;
            if (Validator.isNotNull(ordinaPerRadio)) {
                if (ordinaPerRadio.equals(ReportBrowserConstants.FILTER_BY_TYPE)) {
                    idProcessType = ParamUtil.getString(req, ReportBrowserConstants.TYPE);
                    if (idProcessType.equals(ReportBrowserConstants.ALL)) {
                        idProcessType = null;
                    }
                }

                if (ordinaPerRadio.equals(ReportBrowserConstants.FILTER_BY_PROCESS)) {
                    hpmProcessId = ParamUtil.getString(req, ReportBrowserConstants.PROCESS);
                    if (hpmProcessId.equals(ReportBrowserConstants.ALL)) {
                        hpmProcessId = null;
                    }

                }

                hpmUserId = ParamUtil.getString(req, ReportBrowserConstants.USER);

            }
            src += actionValue + "&nameUser=" + hpmUserId;
            if (Validator.isNotNull(hpmProcessId)) {
                src += "&hpmProcessId=" + hpmProcessId;
            }

            if (Validator.isNotNull(idProcessType)) {
                src += "&idProcessType=" + idProcessType;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    if (actionValue.equalsIgnoreCase(ReportBrowserConstants.KPI_PROCESS_XACTION)) {

        if (Validator.isNotNull(ParamUtil.getString(req, ReportBrowserConstants.FILTER_BY_KPI))) {
            src += ParamUtil.getString(req, ReportBrowserConstants.FILTER_BY_KPI);
        } else {
            src += actionValue;
        }
    }

    if (actionValue.equalsIgnoreCase(ReportBrowserConstants.PIVOT_PROCESS_XACTION)
            || actionValue.equalsIgnoreCase(ReportBrowserConstants.PIVOT_COMMUNICATION_XACTION)) {
        src += actionValue;
        src += "&userid=anonym&password=anonym";
    }

    if (Validator.isNotNull(widthChart)) {
        src += "&widthChart=" + widthChart;
    }

    if (Validator.isNotNull(heightChart)) {
        src += "&heightChart=" + heightChart;
    }

    if (logger.isDebugEnabled()) {
        logger.debug("REPORT render src param: " + src);
    }

    req.setAttribute("REPORT_SRC", src);

    if (logger.isInfoEnabled()) {
        logger.info("REPORT render src: " + src);
    }
    return mapping.findForward("/report/view");
}

From source file:org.apache.jsp.html.portlet.communities.error_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;/* w  w  w.j  a  v a2 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;

        /**
         * 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('\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('\n');
        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("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write('\n');
        out.write('\n');
        if (_jspx_meth_liferay_002dui_005ftabs_005f0(_jspx_page_context))
            return;
        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_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);
        _jspx_th_liferay_002dui_005ferror_005f0.setException(NoSuchGroupException.class);
        _jspx_th_liferay_002dui_005ferror_005f0.setMessage("the-community-could-not-be-found");
        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_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
        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_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);
        _jspx_th_liferay_002dui_005ferror_005f1.setException(NoSuchLayoutException.class);
        _jspx_th_liferay_002dui_005ferror_005f1.setMessage("the-page-could-not-be-found");
        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_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f1);
        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_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);
        _jspx_th_liferay_002dui_005ferror_005f2.setException(NoSuchRoleException.class);
        _jspx_th_liferay_002dui_005ferror_005f2.setMessage("the-role-could-not-be-found");
        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_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f2);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f2);
        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_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);
        _jspx_th_liferay_002dui_005ferror_005f3.setException(PrincipalException.class);
        _jspx_th_liferay_002dui_005ferror_005f3.setMessage("you-do-not-have-the-required-permissions");
        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_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f3);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f3);
    } 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);
    }
}

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

License:Open Source License

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

    JspFactory _jspxFactory = null;//  w  ww. j  a  v  a2 s .co  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;

        /**
         * 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('\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('\n');
        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("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        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", "users");

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

        DateFormat dateFormatDateTime = DateFormats.getDateTime(locale, timeZone);

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

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

        String moduleId = ParamUtil.getString(request, "moduleId");
        String pluginId = ParamUtil.getString(request, "pluginId");
        String pluginType = ParamUtil.getString(request, "pluginType");

        PluginSetting pluginSetting = PluginSettingLocalServiceUtil.getPluginSetting(company.getCompanyId(),
                pluginId, pluginType);

        boolean active = pluginSetting.isActive();
        String[] rolesArray = pluginSetting.getRolesArray();

        if (pluginType.equals(PortletImpl.PLUGIN_TYPE)) {
            String portletId = pluginId;

            Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), portletId);

            active = portlet.isActive();
            rolesArray = portlet.getRolesArray();
        }

        out.write("\n");
        out.write("\n");
        out.write("<script type=\"text/javascript\">\n");
        out.write("\tfunction ");
        if (_jspx_meth_portlet_005fnamespace_005f0(_jspx_page_context))
            return;
        out.write("savePlugin() {\n");
        out.write("\t\tsubmitForm(document.");
        if (_jspx_meth_portlet_005fnamespace_005f1(_jspx_page_context))
            return;
        out.write("fm);\n");
        out.write("\t}\n");
        out.write("</script>\n");
        out.write("\n");
        out.write("<form action=\"");
        //  portlet:actionURL
        com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f0 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                .get(com.liferay.taglib.portlet.ActionURLTag.class);
        _jspx_th_portlet_005factionURL_005f0.setPageContext(_jspx_page_context);
        _jspx_th_portlet_005factionURL_005f0.setParent(null);
        _jspx_th_portlet_005factionURL_005f0.setWindowState(WindowState.MAXIMIZED.toString());
        int _jspx_eval_portlet_005factionURL_005f0 = _jspx_th_portlet_005factionURL_005f0.doStartTag();
        if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_portlet_005factionURL_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_portlet_005factionURL_005f0.doInitBody();
            }
            do {
                if (_jspx_meth_portlet_005fparam_005f0(_jspx_th_portlet_005factionURL_005f0,
                        _jspx_page_context))
                    return;
                int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
            if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
            }
        }
        if (_jspx_th_portlet_005factionURL_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                    .reuse(_jspx_th_portlet_005factionURL_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                .reuse(_jspx_th_portlet_005factionURL_005f0);
        out.write("\" method=\"post\" name=\"");
        if (_jspx_meth_portlet_005fnamespace_005f2(_jspx_page_context))
            return;
        out.write("fm\" onSubmit=\"");
        if (_jspx_meth_portlet_005fnamespace_005f3(_jspx_page_context))
            return;
        out.write("savePlugin(); return false;\">\n");
        out.write("<input name=\"");
        if (_jspx_meth_portlet_005fnamespace_005f4(_jspx_page_context))
            return;
        out.write("redirect\" type=\"hidden\" value=\"");
        out.print(redirect);
        out.write("\" />\n");
        out.write("<input name=\"");
        if (_jspx_meth_portlet_005fnamespace_005f5(_jspx_page_context))
            return;
        out.write("pluginId\" type=\"hidden\" value=\"");
        out.print(pluginId);
        out.write("\" />\n");
        out.write("<input name=\"");
        if (_jspx_meth_portlet_005fnamespace_005f6(_jspx_page_context))
            return;
        out.write("pluginType\" type=\"hidden\" value=\"");
        out.print(pluginType);
        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_005fnames_005fbackURL_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);
        _jspx_th_liferay_002dui_005ftabs_005f0.setNames("plugin");
        _jspx_th_liferay_002dui_005ftabs_005f0.setBackURL(redirect);
        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_005fnames_005fbackURL_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ftabs_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ftabs_005fnames_005fbackURL_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ftabs_005f0);
        out.write("\n");
        out.write("\n");
        out.write("<table class=\"liferay-table\">\n");
        out.write("<tr>\n");
        out.write("\t<td>\n");
        out.write("\t\t");
        if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
            return;
        out.write("\n");
        out.write("\t</td>\n");
        out.write("\t<td>\n");
        out.write("\t\t");
        out.print(moduleId);
        out.write("\n");
        out.write("\t</td>\n");
        out.write("</tr>\n");
        out.write("<tr>\n");
        out.write("\t<td>\n");
        out.write("\t\t");
        if (_jspx_meth_liferay_002dui_005fmessage_005f1(_jspx_page_context))
            return;
        out.write("\n");
        out.write("\t</td>\n");
        out.write("\t<td>\n");
        out.write("\t\t");
        out.print(pluginId);
        out.write("\n");
        out.write("\t</td>\n");
        out.write("</tr>\n");
        out.write("<tr>\n");
        out.write("\t<td colspan=\"2\">\n");
        out.write("\t\t<br />\n");
        out.write("\t</td>\n");
        out.write("</tr>\n");
        out.write("<tr>\n");
        out.write("\t<td>\n");
        out.write("\t\t");
        if (_jspx_meth_liferay_002dui_005fmessage_005f2(_jspx_page_context))
            return;
        out.write("\n");
        out.write("\t</td>\n");
        out.write("\t<td>\n");
        out.write("\t\t");
        //  liferay-ui:input-checkbox
        com.liferay.taglib.ui.InputCheckBoxTag _jspx_th_liferay_002dui_005finput_002dcheckbox_005f0 = (com.liferay.taglib.ui.InputCheckBoxTag) _005fjspx_005ftagPool_005fliferay_002dui_005finput_002dcheckbox_005fparam_005fdefaultValue_005fnobody
                .get(com.liferay.taglib.ui.InputCheckBoxTag.class);
        _jspx_th_liferay_002dui_005finput_002dcheckbox_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005finput_002dcheckbox_005f0.setParent(null);
        _jspx_th_liferay_002dui_005finput_002dcheckbox_005f0.setParam("active");
        _jspx_th_liferay_002dui_005finput_002dcheckbox_005f0.setDefaultValue(active);
        int _jspx_eval_liferay_002dui_005finput_002dcheckbox_005f0 = _jspx_th_liferay_002dui_005finput_002dcheckbox_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dui_005finput_002dcheckbox_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005finput_002dcheckbox_005fparam_005fdefaultValue_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005finput_002dcheckbox_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005finput_002dcheckbox_005fparam_005fdefaultValue_005fnobody
                .reuse(_jspx_th_liferay_002dui_005finput_002dcheckbox_005f0);
        out.write("\n");
        out.write("\t</td>\n");
        out.write("</tr>\n");
        out.write("</table>\n");
        out.write("\n");
        out.write("<br />\n");
        out.write("\n");
        if (_jspx_meth_liferay_002dui_005fmessage_005f3(_jspx_page_context))
            return;
        out.write("\n");
        out.write("\n");
        out.write("<br /><br />\n");
        out.write("\n");
        out.write("<textarea class=\"liferay-textarea\" name=\"");
        if (_jspx_meth_portlet_005fnamespace_005f7(_jspx_page_context))
            return;
        out.write("roles\">");
        out.print(StringUtil.merge(rolesArray, "\n"));
        out.write("</textarea>\n");
        out.write("\n");
        out.write("<br /><br />\n");
        out.write("\n");
        out.write("<input type=\"submit\" value=\"");
        if (_jspx_meth_liferay_002dui_005fmessage_005f4(_jspx_page_context))
            return;
        out.write("\" />\n");
        out.write("\n");
        out.write("<input type=\"button\" value=\"");
        if (_jspx_meth_liferay_002dui_005fmessage_005f5(_jspx_page_context))
            return;
        out.write("\" onClick=\"self.location = '");
        out.print(redirect);
        out.write("';\" />\n");
        out.write("\n");
        out.write("</form>");
    } 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);
    }
}

From source file:org.apache.jsp.html.portlet.error_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;//from  w  w  w.ja  v  a  2 s.co 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;

        /**
         * 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('\n');
        out.write('\n');
        if (_jspx_meth_liferay_002dui_005ftabs_005f0(_jspx_page_context))
            return;
        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_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);
        _jspx_th_liferay_002dui_005ferror_005f0.setException(PrincipalException.class);
        _jspx_th_liferay_002dui_005ferror_005f0.setMessage("you-do-not-have-the-required-permissions");
        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_005fmessage_005fexception_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ferror_005fmessage_005fexception_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ferror_005f0);
    } 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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.cms.search.view_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;/*  ww w.  j ava2 s  .  c om*/
    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;

        /**
         * 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");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        PortalPreferences prefs = PortletPreferencesFactoryUtil.getPortalPreferences(request);

        String namespace = "_GN_CMS_SEARCH_";

        PortletRequest portletRequest = (PortletRequest) request
                .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_REQUEST);

        com.ext.portlet.base.contentrel.ContentRelUtil relUtil = com.ext.portlet.base.contentrel.ContentRelUtil
                .getInstance();
        String[] classNames1 = relUtil.getPortletClassNames();
        String[] portletNames1 = relUtil.getPortletNames();

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

        String defaultKeywords = LanguageUtil.get(pageContext, "search") + "...";
        String unicodeDefaultKeywords = UnicodeFormatter.toString(defaultKeywords);

        String keywords = ParamUtil.getString(request, "keywords", defaultKeywords);

        String searchLayout = GetterUtil.getString(PropsUtil.get("gi9.search.layout"), "");

        long searchPlid = 0;

        if (Validator.isNotNull(searchLayout)) {

            long companyId = PortalUtil.getCompanyId(request);

            Group group = null;

            try {
                group = GroupLocalServiceUtil.getFriendlyURLGroup(companyId, "/guest");

                Object[] friendlyURLMapper = PortalUtil.getPortletFriendlyURLMapper(request, group.getGroupId(),
                        false, searchLayout, null);

                Layout slayout = (Layout) friendlyURLMapper[0];
                searchPlid = slayout.getPlid();
            } catch (Exception e) {
                e.printStackTrace();
            }

        }
        PortletURL portletURL = null;
        if (searchPlid <= 0) {

            portletURL = new PortletURLImpl(request, "GN_CMS_SEARCH", plid.longValue(), false);
            portletURL.setWindowState(WindowState.MAXIMIZED);
        } else {
            portletURL = new PortletURLImpl(request, "GN_CMS_SEARCH", searchPlid, false);
            portletURL.setWindowState(WindowState.NORMAL);
        }

        portletURL.setPortletMode(PortletMode.VIEW);

        portletURL.setParameter("struts_action", "/ext/cms/search/search");
        ;

        out.write("\r\n");
        out.write("\r\n");
        out.write("<form action=\"");
        out.print(portletURL);
        out.write(
                "\" method=\"post\" name=\"GN_CMS_SEARCH_FORM\" onsubmit=\"submitForm(this); return false;\">\r\n");
        out.write("<legend>&nbsp;</legend>\r\n");
        out.write("<input type=\"hidden\" name=\"search\" value=\"true\">\r\n");
        out.write("<table >\r\n");
        out.write("  <tr>\r\n");
        out.write("    <td><input alt=\"");
        out.print(keywords);
        out.write("\" class=\"txt\" title=\"");
        out.print(keywords);
        out.write("\" name=\"");
        out.print(namespace);
        out.write("keywords\" size=\"23\" type=\"text\" value=\"");
        out.print(keywords);
        out.write("\" onBlur=\"if (this.value == '') { this.value = '");
        out.print(unicodeDefaultKeywords);
        out.write("'; }\" onFocus=\"if (this.value == '");
        out.print(unicodeDefaultKeywords);
        out.write("') { this.value = ''; }\" />\r\n");
        out.write("    </td>\r\n");
        out.write("    <td style=\"padding-left:3px;\">\r\n");
        out.write("    <input type=\"image\" alt=\"");
        if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context))
            return;
        out.write("\" class=\"img\" title=\"");
        if (_jspx_meth_liferay_002dui_005fmessage_005f1(_jspx_page_context))
            return;
        out.write("\"  src=\"");
        out.print(themeDisplay.getPathThemeImages());
        out.write("/common/search.gif\" title=\"");
        if (_jspx_meth_liferay_002dui_005fmessage_005f2(_jspx_page_context))
            return;
        out.write("\" type=\"image\" \r\n");
        out.write("     onclick=\"if (document.GN_CMS_SEARCH_FORM.elements['");
        out.print(namespace);
        out.write("keywords'].value == null || \r\n");
        out.write("   \t\t document.GN_CMS_SEARCH_FORM.elements['");
        out.print(namespace);
        out.write("keywords'].value == '') { alert('");
        out.print(LanguageUtil.get(pageContext, "cms.search.please-input-criterion"));
        out.write("'); return false; }\" onkeypress=\"if (document.GN_CMS_SEARCH_FORM.elements['");
        out.print(namespace);
        out.write("keywords'].value == null || \r\n");
        out.write("   \t\t document.GN_CMS_SEARCH_FORM.elements['");
        out.print(namespace);
        out.write("keywords'].value == '') { alert('");
        out.print(LanguageUtil.get(pageContext, "cms.search.please-input-criterion"));
        out.write("'); return false; }\"/>\r\n");
        out.write("   </td>\r\n");
        out.write("  </tr>\r\n");
        out.write("</table>\r\n");
        out.write("\r\n");
        out.write("</form>");
    } 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);
    }
}

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

License:Open Source License

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

    JspFactory _jspxFactory = null;/*ww w  . ja  v  a 2  s. co  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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.epsos.demo.confirmation_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;//from  w w  w  . j ava 2  s .c om
    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");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        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('\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");
        out.write(
                "<script language=\"JavaScript\" src=\"/html/js/editor/modalwindow.js\"></script><noscript></noscript>\n");
        out.write("\n");

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

        out.write('\n');
        out.write('\n');
        if (_jspx_meth_tiles_005finsert_005f0(_jspx_page_context))
            return;
        out.write('\n');
        out.write('\n');
        String secondTime = (String) request.getAttribute("confirmationFailure");
        if (secondTime != null && secondTime.equals("true")) {

            out.write("\n");
            out.write("\t   <span class=\"portlet-msg-error\">\n");
            out.write("\t   ");
            out.print(LanguageUtil.get(pageContext, "epsos.demo.confirmation.error"));
            out.write("\n");
            out.write("\t   </span>\n");
            out.write("\t   ");

        } else {

            out.write("\n");
            out.write("\t   <span class=\"portlet-msg-alert\">\n");
            out.write("\t   ");
            out.print(LanguageUtil.get(pageContext, "epsos.demo.confirmation.title"));
            out.write("\n");
            out.write("\t   </span>\n");
            out.write("\t   ");

        }

        out.write("\n");
        out.write("<form name=\"PATIENT_CONSENT_FORM\" action=\"");
        if (_jspx_meth_portlet_005factionURL_005f0(_jspx_page_context))
            return;
        out.write("\" method=\"post\" class=\"uni-form\">\n");
        out.write("\n");
        out.write("<input type=\"hidden\" name=\"redirect\" value=\"");
        out.print(request.getParameter("redirect"));
        out.write("\">\n");
        out.write("<input type=\"hidden\" name=\"patID\" value=\"");
        out.print(request.getParameter("patID"));
        out.write("\">\n");
        out.write("<input type=\"hidden\" name=\"country\" value=\"");
        out.print(request.getParameter("country"));
        out.write("\">\n");
        out.write("<input type=\"hidden\" name=\"forwardAction\" value=\"");
        out.print(request.getParameter("forwardAction"));
        out.write("\">\n");
        out.write("<input type=\"hidden\" name=\"accessAction\" value=\"createConfirmation\">\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("<div class=\"button-holder\">\n");
        out.write("<input type=\"submit\" value=\"");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.confirmation.button"));
        out.write("\">\n");
        out.write("<input type=\"button\" value=\"");
        out.print(LanguageUtil.get(pageContext, "cancel"));
        out.write("\" onClick=\"location.href='");
        out.print(redirect);
        out.write("';\">\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("</fieldset>\n");
        out.write("\n");
        out.write("</form>\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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.epsos.demo.documentList_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;/*w  w  w . ja v a2 s.co  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");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        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('\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");
        out.write(
                "<script language=\"JavaScript\" src=\"/html/js/editor/modalwindow.js\"></script><noscript></noscript>\n");
        out.write("\n");

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

        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("<h3>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.document.list"));
        out.write("</h3>\r\n");
        out.write("\r\n");
        if (_jspx_meth_tiles_005finsert_005f0(_jspx_page_context))
            return;
        out.write("\r\n");
        out.write("\r\n");

        String patID = request.getParameter("patID");
        List<DocumentClientDto> patientDocuments = (List<DocumentClientDto>) request
                .getAttribute("patientDocuments");
        if (patientDocuments != null && patientDocuments.size() > 0) {
            out.write("\r\n");
            out.write("\r\n");
            //  display:table
            org.displaytag.tags.TableTag _jspx_th_display_005ftable_005f0 = (org.displaytag.tags.TableTag) _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid_005fexport
                    .get(org.displaytag.tags.TableTag.class);
            _jspx_th_display_005ftable_005f0.setPageContext(_jspx_page_context);
            _jspx_th_display_005ftable_005f0.setParent(null);
            _jspx_th_display_005ftable_005f0.setUid("doc");
            _jspx_th_display_005ftable_005f0.setName(new String("patientDocuments"));
            _jspx_th_display_005ftable_005f0
                    .setRequestURI("//ext/epsos/demo/viewPatientDocuments?actionURL=true");
            _jspx_th_display_005ftable_005f0.setPagesize(25);
            _jspx_th_display_005ftable_005f0.setSort("list");
            _jspx_th_display_005ftable_005f0.setExport(true);
            _jspx_th_display_005ftable_005f0.setStyle("width: 100%;");
            int _jspx_eval_display_005ftable_005f0 = _jspx_th_display_005ftable_005f0.doStartTag();
            if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                java.lang.Object doc = null;
                java.lang.Integer doc_rowNum = null;
                if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.pushBody();
                    _jspx_th_display_005ftable_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                    _jspx_th_display_005ftable_005f0.doInitBody();
                }
                doc = (java.lang.Object) _jspx_page_context.findAttribute("doc");
                doc_rowNum = (java.lang.Integer) _jspx_page_context.findAttribute("doc_rowNum");
                do {
                    out.write("\r\n");
                    out.write("\r\n");
                    if (_jspx_meth_display_005fsetProperty_005f0(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f1(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f2(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f3(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f4(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f5(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f6(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f7(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write("\r\n");
                    out.write("\r\n");
                    DocumentClientDto docItem = (DocumentClientDto) doc;
                    out.write("\r\n");
                    out.write("\r\n");
                    if (_jspx_meth_display_005fcolumn_005f0(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write("\r\n");
                    out.write("\r\n");
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f1 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable_005fsortProperty_005fmedia
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f1.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f1
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f1.setTitleKey("epsos.demo.document.title");
                    _jspx_th_display_005fcolumn_005f1.setSortable(true);
                    _jspx_th_display_005fcolumn_005f1.setSortProperty("name");
                    _jspx_th_display_005fcolumn_005f1.setMedia("html");
                    int _jspx_eval_display_005fcolumn_005f1 = _jspx_th_display_005fcolumn_005f1.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f1
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f1.doInitBody();
                        }
                        do {
                            out.write('\r');
                            out.write('\n');
                            if (docItem.getMimeType().equals("text/xml") && !docItem.getFormatCode().getValue()
                                    .equals("urn:ihe:iti:xds-sd:pdf:2008")) {
                                out.write("\r\n");
                                out.write("<a title=\"");
                                out.print(LanguageUtil.get(pageContext, "epsos.xsl.view"));
                                out.write("\" href=\"javascript:openDialog('");
                                //  portlet:actionURL
                                com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f0 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                        .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                _jspx_th_portlet_005factionURL_005f0.setPageContext(_jspx_page_context);
                                _jspx_th_portlet_005factionURL_005f0.setParent(
                                        (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f1);
                                _jspx_th_portlet_005factionURL_005f0
                                        .setWindowState(LiferayWindowState.EXCLUSIVE.toString());
                                int _jspx_eval_portlet_005factionURL_005f0 = _jspx_th_portlet_005factionURL_005f0
                                        .doStartTag();
                                if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                    if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                        out = _jspx_page_context.pushBody();
                                        _jspx_th_portlet_005factionURL_005f0
                                                .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                        _jspx_th_portlet_005factionURL_005f0.doInitBody();
                                    }
                                    do {
                                        out.write('\r');
                                        out.write('\n');
                                        if (_jspx_meth_portlet_005fparam_005f0(
                                                _jspx_th_portlet_005factionURL_005f0, _jspx_page_context))
                                            return;
                                        out.write('\r');
                                        out.write('\n');
                                        //  portlet:param
                                        com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f1 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .get(com.liferay.taglib.util.ParamTag.class);
                                        _jspx_th_portlet_005fparam_005f1.setPageContext(_jspx_page_context);
                                        _jspx_th_portlet_005fparam_005f1.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f0);
                                        _jspx_th_portlet_005fparam_005f1.setName("patID");
                                        _jspx_th_portlet_005fparam_005f1.setValue(patID);
                                        int _jspx_eval_portlet_005fparam_005f1 = _jspx_th_portlet_005fparam_005f1
                                                .doStartTag();
                                        if (_jspx_th_portlet_005fparam_005f1
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f1);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f1);
                                        out.write('\r');
                                        out.write('\n');
                                        //  portlet:param
                                        com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f2 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .get(com.liferay.taglib.util.ParamTag.class);
                                        _jspx_th_portlet_005fparam_005f2.setPageContext(_jspx_page_context);
                                        _jspx_th_portlet_005fparam_005f2.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f0);
                                        _jspx_th_portlet_005fparam_005f2.setName("docID");
                                        _jspx_th_portlet_005fparam_005f2.setValue(docItem.getUniqueId());
                                        int _jspx_eval_portlet_005fparam_005f2 = _jspx_th_portlet_005fparam_005f2
                                                .doStartTag();
                                        if (_jspx_th_portlet_005fparam_005f2
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f2);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f2);
                                        out.write('\r');
                                        out.write('\n');
                                        //  portlet:param
                                        com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f3 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .get(com.liferay.taglib.util.ParamTag.class);
                                        _jspx_th_portlet_005fparam_005f3.setPageContext(_jspx_page_context);
                                        _jspx_th_portlet_005fparam_005f3.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f0);
                                        _jspx_th_portlet_005fparam_005f3.setName("redirect");
                                        _jspx_th_portlet_005fparam_005f3.setValue(currentURL);
                                        int _jspx_eval_portlet_005fparam_005f3 = _jspx_th_portlet_005fparam_005f3
                                                .doStartTag();
                                        if (_jspx_th_portlet_005fparam_005f3
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f3);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f3);
                                        out.write('\r');
                                        out.write('\n');
                                        int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f0
                                                .doAfterBody();
                                        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                            break;
                                    } while (true);
                                    if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                        out = _jspx_page_context.popBody();
                                    }
                                }
                                if (_jspx_th_portlet_005factionURL_005f0
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                            .reuse(_jspx_th_portlet_005factionURL_005f0);
                                    return;
                                }
                                _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                        .reuse(_jspx_th_portlet_005factionURL_005f0);
                                out.write("', 900,800);\">\r\n");
                                out.write("<img src=\"");
                                out.print(themeDisplay.getPathThemeImage());
                                out.write("/alfresco/filetypes/xml.gif\" alt=\"xml\"> &nbsp;\r\n");
                                out.print(docItem.getName());
                                out.write("</a>\r\n");
                            } else {
                                out.write("\r\n");
                                out.write("\r\n");
                                if (docItem.getFormatCode().getValue().equals("urn:ihe:iti:xds-sd:pdf:2008")) {
                                    out.write("\r\n");
                                    out.write("<a title=\"");
                                    out.print(LanguageUtil.get(pageContext, "download"));
                                    out.write("\" href=\"");
                                    //  portlet:actionURL
                                    com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f1 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                            .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                    _jspx_th_portlet_005factionURL_005f1.setPageContext(_jspx_page_context);
                                    _jspx_th_portlet_005factionURL_005f1.setParent(
                                            (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f1);
                                    _jspx_th_portlet_005factionURL_005f1
                                            .setWindowState(LiferayWindowState.EXCLUSIVE.toString());
                                    int _jspx_eval_portlet_005factionURL_005f1 = _jspx_th_portlet_005factionURL_005f1
                                            .doStartTag();
                                    if (_jspx_eval_portlet_005factionURL_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                        if (_jspx_eval_portlet_005factionURL_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                            out = _jspx_page_context.pushBody();
                                            _jspx_th_portlet_005factionURL_005f1
                                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                            _jspx_th_portlet_005factionURL_005f1.doInitBody();
                                        }
                                        do {
                                            out.write('\r');
                                            out.write('\n');
                                            if (_jspx_meth_portlet_005fparam_005f4(
                                                    _jspx_th_portlet_005factionURL_005f1, _jspx_page_context))
                                                return;
                                            out.write('\r');
                                            out.write('\n');
                                            //  portlet:param
                                            com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f5 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .get(com.liferay.taglib.util.ParamTag.class);
                                            _jspx_th_portlet_005fparam_005f5.setPageContext(_jspx_page_context);
                                            _jspx_th_portlet_005fparam_005f5.setParent(
                                                    (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f1);
                                            _jspx_th_portlet_005fparam_005f5.setName("patID");
                                            _jspx_th_portlet_005fparam_005f5.setValue(patID);
                                            int _jspx_eval_portlet_005fparam_005f5 = _jspx_th_portlet_005fparam_005f5
                                                    .doStartTag();
                                            if (_jspx_th_portlet_005fparam_005f5
                                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                        .reuse(_jspx_th_portlet_005fparam_005f5);
                                                return;
                                            }
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f5);
                                            out.write('\r');
                                            out.write('\n');
                                            //  portlet:param
                                            com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f6 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .get(com.liferay.taglib.util.ParamTag.class);
                                            _jspx_th_portlet_005fparam_005f6.setPageContext(_jspx_page_context);
                                            _jspx_th_portlet_005fparam_005f6.setParent(
                                                    (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f1);
                                            _jspx_th_portlet_005fparam_005f6.setName("docID");
                                            _jspx_th_portlet_005fparam_005f6.setValue(docItem.getUniqueId());
                                            int _jspx_eval_portlet_005fparam_005f6 = _jspx_th_portlet_005fparam_005f6
                                                    .doStartTag();
                                            if (_jspx_th_portlet_005fparam_005f6
                                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                        .reuse(_jspx_th_portlet_005fparam_005f6);
                                                return;
                                            }
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f6);
                                            out.write('\r');
                                            out.write('\n');
                                            //  portlet:param
                                            com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f7 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .get(com.liferay.taglib.util.ParamTag.class);
                                            _jspx_th_portlet_005fparam_005f7.setPageContext(_jspx_page_context);
                                            _jspx_th_portlet_005fparam_005f7.setParent(
                                                    (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f1);
                                            _jspx_th_portlet_005fparam_005f7.setName("redirect");
                                            _jspx_th_portlet_005fparam_005f7.setValue(currentURL);
                                            int _jspx_eval_portlet_005fparam_005f7 = _jspx_th_portlet_005fparam_005f7
                                                    .doStartTag();
                                            if (_jspx_th_portlet_005fparam_005f7
                                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                        .reuse(_jspx_th_portlet_005fparam_005f7);
                                                return;
                                            }
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f7);
                                            out.write('\r');
                                            out.write('\n');
                                            int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f1
                                                    .doAfterBody();
                                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                                break;
                                        } while (true);
                                        if (_jspx_eval_portlet_005factionURL_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                            out = _jspx_page_context.popBody();
                                        }
                                    }
                                    if (_jspx_th_portlet_005factionURL_005f1
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                                .reuse(_jspx_th_portlet_005factionURL_005f1);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                            .reuse(_jspx_th_portlet_005factionURL_005f1);
                                    out.write("\">\r\n");
                                    out.write("<img src=\"");
                                    out.print(themeDisplay.getPathThemeImage());
                                    out.write("/alfresco/filetypes/pdf.gif\" alt=\"pdf\"> &nbsp;\r\n");
                                }
                                out.write("\r\n");
                                out.write("\r\n");
                                out.print(docItem.getName());
                                out.write("\r\n");
                                out.write("\r\n");
                                if (docItem.getFormatCode().getValue().equals("urn:ihe:iti:xds-sd:pdf:2008")) {
                                    out.write("\r\n");
                                    out.write("</a>\r\n");
                                }
                                out.write("\r\n");
                                out.write("\r\n");
                            }
                            out.write("\r\n");
                            out.write("\r\n");
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f1.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f1
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable_005fsortProperty_005fmedia
                                .reuse(_jspx_th_display_005fcolumn_005f1);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable_005fsortProperty_005fmedia
                            .reuse(_jspx_th_display_005fcolumn_005f1);
                    out.write("\r\n");
                    out.write("\r\n");
                    if (_jspx_meth_display_005fcolumn_005f2(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\r');
                    out.write('\n');
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f3 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f3.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f3
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f3.setTitleKey("epsos.demo.document.author");
                    _jspx_th_display_005fcolumn_005f3.setSortable(true);
                    int _jspx_eval_display_005fcolumn_005f3 = _jspx_th_display_005fcolumn_005f3.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f3
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f3.doInitBody();
                        }
                        do {
                            out.write('\r');
                            out.write('\n');
                            if (docItem.getAuthorPerson() != null && docItem.getAuthorPerson().size() > 0) {
                                for (String auth : docItem.getAuthorPerson()) {
                                    out.print(auth + "&nbsp;");
                                }
                            }

                            out.write('\r');
                            out.write('\n');
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f3.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f3
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                                .reuse(_jspx_th_display_005fcolumn_005f3);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .reuse(_jspx_th_display_005fcolumn_005f3);
                    out.write('\r');
                    out.write('\n');
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f4 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f4.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f4
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f4.setTitleKey("epsos.demo.document.creationDate");
                    _jspx_th_display_005fcolumn_005f4.setSortable(true);
                    int _jspx_eval_display_005fcolumn_005f4 = _jspx_th_display_005fcolumn_005f4.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f4 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f4
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f4.doInitBody();
                        }
                        do {
                            out.write('\r');
                            out.write('\n');
                            if (docItem.getCreationTime() != null) {
                                out.print(
                                        EpsosHelperService.formatCreationTimeString(docItem.getCreationTime()));
                            }
                            out.write("\r\n");
                            out.write("\r\n");
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f4.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f4 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f4
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                                .reuse(_jspx_th_display_005fcolumn_005f4);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .reuse(_jspx_th_display_005fcolumn_005f4);
                    out.write('\r');
                    out.write('\n');
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f5 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f5.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f5
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f5.setTitleKey("epsos.demo.document.healthcareFacility");
                    _jspx_th_display_005fcolumn_005f5.setSortable(true);
                    int _jspx_eval_display_005fcolumn_005f5 = _jspx_th_display_005fcolumn_005f5.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f5 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f5 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f5
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f5.doInitBody();
                        }
                        do {
                            out.write('\r');
                            out.write('\n');
                            out.print(docItem.getHealthcareFacilityCode() != null
                                    ? docItem.getHealthcareFacilityCode().getValue()
                                    : "");
                            out.write('\r');
                            out.write('\n');
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f5.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f5 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f5
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                                .reuse(_jspx_th_display_005fcolumn_005f5);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .reuse(_jspx_th_display_005fcolumn_005f5);
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\r\n");
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f6 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005fstyle_005fmedia
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f6.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f6
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f6.setMedia("html");
                    _jspx_th_display_005fcolumn_005f6.setStyle("white-space:nowrap;");
                    int _jspx_eval_display_005fcolumn_005f6 = _jspx_th_display_005fcolumn_005f6.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f6 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f6 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f6
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f6.doInitBody();
                        }
                        do {
                            out.write("\r\n");
                            out.write("<a title=\"");
                            out.print(LanguageUtil.get(pageContext, "epsos.patient.doc.view"));
                            out.write("\" href=\"");
                            //  portlet:actionURL
                            com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f2 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL
                                    .get(com.liferay.taglib.portlet.ActionURLTag.class);
                            _jspx_th_portlet_005factionURL_005f2.setPageContext(_jspx_page_context);
                            _jspx_th_portlet_005factionURL_005f2.setParent(
                                    (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f6);
                            int _jspx_eval_portlet_005factionURL_005f2 = _jspx_th_portlet_005factionURL_005f2
                                    .doStartTag();
                            if (_jspx_eval_portlet_005factionURL_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                if (_jspx_eval_portlet_005factionURL_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                    out = _jspx_page_context.pushBody();
                                    _jspx_th_portlet_005factionURL_005f2
                                            .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                    _jspx_th_portlet_005factionURL_005f2.doInitBody();
                                }
                                do {
                                    out.write('\r');
                                    out.write('\n');
                                    if (_jspx_meth_portlet_005fparam_005f8(_jspx_th_portlet_005factionURL_005f2,
                                            _jspx_page_context))
                                        return;
                                    out.write('\r');
                                    out.write('\n');
                                    //  portlet:param
                                    com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f9 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                            .get(com.liferay.taglib.util.ParamTag.class);
                                    _jspx_th_portlet_005fparam_005f9.setPageContext(_jspx_page_context);
                                    _jspx_th_portlet_005fparam_005f9.setParent(
                                            (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f2);
                                    _jspx_th_portlet_005fparam_005f9.setName("patID");
                                    _jspx_th_portlet_005fparam_005f9.setValue(patID);
                                    int _jspx_eval_portlet_005fparam_005f9 = _jspx_th_portlet_005fparam_005f9
                                            .doStartTag();
                                    if (_jspx_th_portlet_005fparam_005f9
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f9);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                            .reuse(_jspx_th_portlet_005fparam_005f9);
                                    out.write('\r');
                                    out.write('\n');
                                    //  portlet:param
                                    com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f10 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                            .get(com.liferay.taglib.util.ParamTag.class);
                                    _jspx_th_portlet_005fparam_005f10.setPageContext(_jspx_page_context);
                                    _jspx_th_portlet_005fparam_005f10.setParent(
                                            (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f2);
                                    _jspx_th_portlet_005fparam_005f10.setName("docID");
                                    _jspx_th_portlet_005fparam_005f10.setValue(docItem.getUniqueId());
                                    int _jspx_eval_portlet_005fparam_005f10 = _jspx_th_portlet_005fparam_005f10
                                            .doStartTag();
                                    if (_jspx_th_portlet_005fparam_005f10
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f10);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                            .reuse(_jspx_th_portlet_005fparam_005f10);
                                    out.write('\r');
                                    out.write('\n');
                                    //  portlet:param
                                    com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f11 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                            .get(com.liferay.taglib.util.ParamTag.class);
                                    _jspx_th_portlet_005fparam_005f11.setPageContext(_jspx_page_context);
                                    _jspx_th_portlet_005fparam_005f11.setParent(
                                            (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f2);
                                    _jspx_th_portlet_005fparam_005f11.setName("redirect");
                                    _jspx_th_portlet_005fparam_005f11.setValue(currentURL);
                                    int _jspx_eval_portlet_005fparam_005f11 = _jspx_th_portlet_005fparam_005f11
                                            .doStartTag();
                                    if (_jspx_th_portlet_005fparam_005f11
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f11);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                            .reuse(_jspx_th_portlet_005fparam_005f11);
                                    out.write('\r');
                                    out.write('\n');
                                    int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f2.doAfterBody();
                                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                        break;
                                } while (true);
                                if (_jspx_eval_portlet_005factionURL_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                    out = _jspx_page_context.popBody();
                                }
                            }
                            if (_jspx_th_portlet_005factionURL_005f2
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fportlet_005factionURL
                                        .reuse(_jspx_th_portlet_005factionURL_005f2);
                                return;
                            }
                            _005fjspx_005ftagPool_005fportlet_005factionURL
                                    .reuse(_jspx_th_portlet_005factionURL_005f2);
                            out.write("\"><img src=\"");
                            out.print(themeDisplay.getPathThemeImage());
                            out.write("/common/view.png\" alt=\"view\"></a>\r\n");
                            if (!docItem.getFormatCode().getValue().equals("urn:ihe:iti:xds-sd:pdf:2008")) {
                                out.write("\r\n");
                                out.write("&nbsp;\r\n");
                                out.write("<a title=\"");
                                out.print(LanguageUtil.get(pageContext, "download"));
                                out.write("\" href=\"");
                                //  portlet:actionURL
                                com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f3 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                        .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                _jspx_th_portlet_005factionURL_005f3.setPageContext(_jspx_page_context);
                                _jspx_th_portlet_005factionURL_005f3.setParent(
                                        (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f6);
                                _jspx_th_portlet_005factionURL_005f3
                                        .setWindowState(LiferayWindowState.EXCLUSIVE.toString());
                                int _jspx_eval_portlet_005factionURL_005f3 = _jspx_th_portlet_005factionURL_005f3
                                        .doStartTag();
                                if (_jspx_eval_portlet_005factionURL_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                    if (_jspx_eval_portlet_005factionURL_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                        out = _jspx_page_context.pushBody();
                                        _jspx_th_portlet_005factionURL_005f3
                                                .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                        _jspx_th_portlet_005factionURL_005f3.doInitBody();
                                    }
                                    do {
                                        out.write('\r');
                                        out.write('\n');
                                        if (_jspx_meth_portlet_005fparam_005f12(
                                                _jspx_th_portlet_005factionURL_005f3, _jspx_page_context))
                                            return;
                                        out.write('\r');
                                        out.write('\n');
                                        //  portlet:param
                                        com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f13 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .get(com.liferay.taglib.util.ParamTag.class);
                                        _jspx_th_portlet_005fparam_005f13.setPageContext(_jspx_page_context);
                                        _jspx_th_portlet_005fparam_005f13.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f3);
                                        _jspx_th_portlet_005fparam_005f13.setName("patID");
                                        _jspx_th_portlet_005fparam_005f13.setValue(patID);
                                        int _jspx_eval_portlet_005fparam_005f13 = _jspx_th_portlet_005fparam_005f13
                                                .doStartTag();
                                        if (_jspx_th_portlet_005fparam_005f13
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f13);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f13);
                                        out.write('\r');
                                        out.write('\n');
                                        //  portlet:param
                                        com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f14 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .get(com.liferay.taglib.util.ParamTag.class);
                                        _jspx_th_portlet_005fparam_005f14.setPageContext(_jspx_page_context);
                                        _jspx_th_portlet_005fparam_005f14.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f3);
                                        _jspx_th_portlet_005fparam_005f14.setName("docID");
                                        _jspx_th_portlet_005fparam_005f14.setValue(docItem.getUniqueId());
                                        int _jspx_eval_portlet_005fparam_005f14 = _jspx_th_portlet_005fparam_005f14
                                                .doStartTag();
                                        if (_jspx_th_portlet_005fparam_005f14
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f14);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f14);
                                        out.write('\r');
                                        out.write('\n');
                                        //  portlet:param
                                        com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f15 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .get(com.liferay.taglib.util.ParamTag.class);
                                        _jspx_th_portlet_005fparam_005f15.setPageContext(_jspx_page_context);
                                        _jspx_th_portlet_005fparam_005f15.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f3);
                                        _jspx_th_portlet_005fparam_005f15.setName("redirect");
                                        _jspx_th_portlet_005fparam_005f15.setValue(currentURL);
                                        int _jspx_eval_portlet_005fparam_005f15 = _jspx_th_portlet_005fparam_005f15
                                                .doStartTag();
                                        if (_jspx_th_portlet_005fparam_005f15
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                    .reuse(_jspx_th_portlet_005fparam_005f15);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                .reuse(_jspx_th_portlet_005fparam_005f15);
                                        out.write('\r');
                                        out.write('\n');
                                        int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f3
                                                .doAfterBody();
                                        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                            break;
                                    } while (true);
                                    if (_jspx_eval_portlet_005factionURL_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                        out = _jspx_page_context.popBody();
                                    }
                                }
                                if (_jspx_th_portlet_005factionURL_005f3
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                            .reuse(_jspx_th_portlet_005factionURL_005f3);
                                    return;
                                }
                                _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                        .reuse(_jspx_th_portlet_005factionURL_005f3);
                                out.write("\"><img src=\"");
                                out.print(themeDisplay.getPathThemeImage());
                                out.write("/common/download.png\" alt=\"download\"></a>\r\n");
                            }
                            out.write('\r');
                            out.write('\n');
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f6.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f6 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f6
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005fstyle_005fmedia
                                .reuse(_jspx_th_display_005fcolumn_005f6);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005fstyle_005fmedia
                            .reuse(_jspx_th_display_005fcolumn_005f6);
                    out.write("\r\n");
                    out.write("\r\n");
                    int evalDoAfterBody = _jspx_th_display_005ftable_005f0.doAfterBody();
                    doc = (java.lang.Object) _jspx_page_context.findAttribute("doc");
                    doc_rowNum = (java.lang.Integer) _jspx_page_context.findAttribute("doc_rowNum");
                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                } while (true);
                if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.popBody();
                }
            }
            if (_jspx_th_display_005ftable_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid_005fexport
                        .reuse(_jspx_th_display_005ftable_005f0);
                return;
            }
            _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid_005fexport
                    .reuse(_jspx_th_display_005ftable_005f0);
            out.write("\r\n");
            out.write("\r\n");
        }
        out.write("\r\n");
        out.write("<br>\r\n");
        out.write("<a href=\"");
        out.print(redirect);
        out.write("\">\r\n");
        out.write("<img src=\"");
        out.print(themeDisplay.getPathThemeImage());
        out.write("/common/back.png\" alt=\"back\">");
        out.print(LanguageUtil.get(pageContext, "back"));
        out.write("</a>\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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.epsos.demo.patientCard_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;/*ww w . j a  v  a  2  s .  co 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");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        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('\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");
        out.write(
                "<script language=\"JavaScript\" src=\"/html/js/editor/modalwindow.js\"></script><noscript></noscript>\n");
        out.write("\n");

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

        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        EhrPatientClientDto patient = (EhrPatientClientDto) request.getAttribute("patient");

        out.write("\n");
        out.write("\n");
        out.write("<div class=\"uni-form\">\r\n");
        out.write("<fieldset class=\"inline-labels\">\n");
        out.write("<legend>\n");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.patientCard"));
        out.write("\n");
        out.write("</legend>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.surName"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getFamilyName() != null ? patient.getFamilyName() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.givenName"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getGivenName() != null ? patient.getGivenName() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.middleName"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getMiddleName() != null ? patient.getMiddleName() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.title"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getNamePrefix() != null ? patient.getNamePrefix() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.sex"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getSex() != null
                ? LanguageUtil.get(pageContext, "epsos.demo.search.sex." + patient.getSex())
                : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.birthDate"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getBirthdate() != null
                ? EpsosHelperService.dateFormat.format(patient.getBirthdate().toGregorianCalendar().getTime())
                : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.street"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getStreetAddress() != null ? patient.getStreetAddress() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.city"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getCity() != null ? patient.getCity() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.country"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getCountry() != null ? patient.getCountry() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.zipCode"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getZip() != null ? patient.getZip() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.state"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getState() != null ? patient.getState() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.phone_home"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getHomePhone() != null ? patient.getHomePhone() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.phone_business"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getBusinessPhone() != null ? patient.getBusinessPhone() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.mail_home"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getEmailHome() != null ? patient.getEmailHome() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.mail_business"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getEmailBusiness() != null ? patient.getEmailBusiness() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.placeOfBirth"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getBirthPlace() != null ? patient.getBirthPlace() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.citizenship"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getCitizenship() != null ? patient.getCitizenship() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.nationality"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getNationality() != null ? patient.getNationality() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.accountData"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getAccountNumber() != null ? patient.getAccountNumber() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.ssnNumber"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getSsnNumber() != null ? patient.getSsnNumber() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.driversLicenceNumber"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getDrivingLicense() != null ? patient.getDrivingLicense() : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.dateOfDeath"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(patient.getDeathdate() != null
                ? EpsosHelperService.dateFormat.format(patient.getDeathdate().toGregorianCalendar().getTime())
                : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("\n");
        out.write("<div class=\"ctrl-holder\">\n");
        out.write("<label>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.lastUpdate"));
        out.write("</label>\n");
        out.write("<span>\n");
        out.print(
                patient.getLastUpdtateTime() != null
                        ? EpsosHelperService.dateFormat
                                .format(patient.getLastUpdtateTime().toGregorianCalendar().getTime())
                        : "");
        out.write("\n");
        out.write("</span>\n");
        out.write("</div>\n");
        out.write("</fieldset>\n");
        out.write("\n");
        out.write("\n");
        out.write("<br />\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("<!--<fieldset class=\"inline-labels\">\n");
        out.write("<legend>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.patientIds"));
        out.write("</legend>\n");
        out.write("-->\n");
        out.write("<h3>");
        out.print(LanguageUtil.get(pageContext, "epsos.demo.search.patiendIds"));
        out.write("</h3>\n");
        out.write("\n");
        out.write("\n");
        if (patient.getPid() != null && patient.getPid().size() > 0) {
            request.setAttribute("patientIds", patient.getPid());

            out.write('\n');
            out.write('\n');
            //  display:table
            org.displaytag.tags.TableTag _jspx_th_display_005ftable_005f0 = (org.displaytag.tags.TableTag) _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid_005fexport
                    .get(org.displaytag.tags.TableTag.class);
            _jspx_th_display_005ftable_005f0.setPageContext(_jspx_page_context);
            _jspx_th_display_005ftable_005f0.setParent(null);
            _jspx_th_display_005ftable_005f0.setUid("pid");
            _jspx_th_display_005ftable_005f0.setName(new String("patientIds"));
            _jspx_th_display_005ftable_005f0.setRequestURI("//ext/epsos/demo/viewPatientCard?actionURL=true");
            _jspx_th_display_005ftable_005f0.setPagesize(25);
            _jspx_th_display_005ftable_005f0.setSort("list");
            _jspx_th_display_005ftable_005f0.setExport(true);
            _jspx_th_display_005ftable_005f0.setStyle("width: 100%;");
            int _jspx_eval_display_005ftable_005f0 = _jspx_th_display_005ftable_005f0.doStartTag();
            if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                java.lang.Object pid = null;
                java.lang.Integer pid_rowNum = null;
                if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.pushBody();
                    _jspx_th_display_005ftable_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                    _jspx_th_display_005ftable_005f0.doInitBody();
                }
                pid = (java.lang.Object) _jspx_page_context.findAttribute("pid");
                pid_rowNum = (java.lang.Integer) _jspx_page_context.findAttribute("pid_rowNum");
                do {
                    out.write('\n');
                    out.write('\n');
                    EhrPIDClientDto pidItem = (EhrPIDClientDto) pid;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f0(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f1(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f2(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f3(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f4(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f5(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f6(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fsetProperty_005f7(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    out.write('\n');
                    if (_jspx_meth_display_005fcolumn_005f0(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    if (_jspx_meth_display_005fcolumn_005f1(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f2 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f2.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f2
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f2.setTitleKey("epsos.demo.pid.domain");
                    _jspx_th_display_005fcolumn_005f2.setSortable(true);
                    int _jspx_eval_display_005fcolumn_005f2 = _jspx_th_display_005fcolumn_005f2.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f2
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f2.doInitBody();
                        }
                        do {
                            out.write('\n');
                            out.print(pidItem.getDomain().getAuthUniversalID());
                            out.write('\n');
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f2.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f2
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                                .reuse(_jspx_th_display_005fcolumn_005f2);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .reuse(_jspx_th_display_005fcolumn_005f2);
                    out.write('\n');
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f3 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f3.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f3
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f3.setTitleKey("epsos.demo.pid.domainType");
                    _jspx_th_display_005fcolumn_005f3.setSortable(true);
                    int _jspx_eval_display_005fcolumn_005f3 = _jspx_th_display_005fcolumn_005f3.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f3
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f3.doInitBody();
                        }
                        do {
                            out.write('\n');
                            out.print(pidItem.getDomain().getAuthUniversalIDType());
                            out.write('\n');
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f3.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f3
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                                .reuse(_jspx_th_display_005fcolumn_005f3);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .reuse(_jspx_th_display_005fcolumn_005f3);
                    out.write('\n');
                    //  display:column
                    org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f4 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .get(org.displaytag.tags.ColumnTag.class);
                    _jspx_th_display_005fcolumn_005f4.setPageContext(_jspx_page_context);
                    _jspx_th_display_005fcolumn_005f4
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                    _jspx_th_display_005fcolumn_005f4.setTitleKey("epsos.demo.pid.namespace");
                    _jspx_th_display_005fcolumn_005f4.setSortable(true);
                    int _jspx_eval_display_005fcolumn_005f4 = _jspx_th_display_005fcolumn_005f4.doStartTag();
                    if (_jspx_eval_display_005fcolumn_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_display_005fcolumn_005f4 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_display_005fcolumn_005f4
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_display_005fcolumn_005f4.doInitBody();
                        }
                        do {
                            out.write('\n');
                            out.print(pidItem.getDomain().getAuthNamespaceID());
                            out.write('\n');
                            int evalDoAfterBody = _jspx_th_display_005fcolumn_005f4.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_display_005fcolumn_005f4 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_display_005fcolumn_005f4
                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                                .reuse(_jspx_th_display_005fcolumn_005f4);
                        return;
                    }
                    _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitleKey_005fsortable
                            .reuse(_jspx_th_display_005fcolumn_005f4);
                    out.write('\n');
                    if (_jspx_meth_display_005fcolumn_005f5(_jspx_th_display_005ftable_005f0,
                            _jspx_page_context))
                        return;
                    out.write('\n');
                    out.write('\n');
                    int evalDoAfterBody = _jspx_th_display_005ftable_005f0.doAfterBody();
                    pid = (java.lang.Object) _jspx_page_context.findAttribute("pid");
                    pid_rowNum = (java.lang.Integer) _jspx_page_context.findAttribute("pid_rowNum");
                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                } while (true);
                if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.popBody();
                }
            }
            if (_jspx_th_display_005ftable_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid_005fexport
                        .reuse(_jspx_th_display_005ftable_005f0);
                return;
            }
            _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid_005fexport
                    .reuse(_jspx_th_display_005ftable_005f0);
            out.write('\n');
            out.write('\n');
        }
        out.write("\n");
        out.write("<!--</fieldset>-->\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\n");
        out.write("<br>\n");
        out.write("\n");
        out.write("<a href=\"");
        out.print(redirect);
        out.write("\">\n");
        out.write("<img src=\"");
        out.print(themeDisplay.getPathThemeImage());
        out.write("/common/back.png\" alt=\"back\">");
        out.print(LanguageUtil.get(pageContext, "back"));
        out.write("</a>\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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.epsos.demo.view_jsp.java

License:Open Source License

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

      JspFactory _jspxFactory = null;//from  w w w . jav  a  2  s  .com
      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");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          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('\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");
          out.write(
                  "<script language=\"JavaScript\" src=\"/html/js/editor/modalwindow.js\"></script><noscript></noscript>\n");
          out.write("\n");

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

          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write("\n");
          out.write(" <style type=\"text/css\">\n");
          out.write("\n");
          out.write("#left {\n");
          out.write("\tfloat: left;\n");
          out.write("\twidth: 270px;\n");
          out.write("}\n");
          out.write("\n");
          out.write("#right {\n");
          out.write("\tfloat: right;\n");
          out.write("\twidth: 270px;\n");
          out.write("}\n");
          out.write("\n");
          out.write("#middle { \n");
          out.write("\tfloat: left;\n");
          out.write("\twidth: 270px;\n");
          out.write("}\n");
          out.write(" </style>\n");
          out.write("\n");

          String currentURL2 = currentURL;
          String extraParams = "";
          java.util.Enumeration params = request.getParameterNames();
          while (params.hasMoreElements()) {
              String paramName = (String) params.nextElement();
              if (paramName.equals("struts_action") || paramName.startsWith("p_p_"))
                  continue;
              String paramValue = request.getParameter(paramName);
              if (Validator.isNull(paramValue))
                  paramValue = "";
              extraParams += "&" + paramName + "=" + paramValue;
          }

          currentURL2 = currentURL + extraParams;

          currentURL = currentURL2;

          out.write("\n");
          out.write("\n");
          out.write("<script language=\"JavaScript\">\n");
          out.write("\n");
          out.write("function countrySelectionChanged()\n");
          out.write("{\n");
          out.write("\tdocument.EpsosPatientSearchForm.elements['search'].value = false;\n");
          out.write("\tdocument.EpsosPatientSearchForm.elements['submitButton'].disabled=true;\n");
          out.write("\tdocument.EpsosPatientSearchForm.submit();\n");
          out.write("}\n");
          out.write("</script>\n");
          out.write("\n");
          out.write("\n");
          out.write("\r\n");
          //  html:form
          org.apache.struts.taglib.html.FormTag _jspx_th_html_005fform_005f0 = (org.apache.struts.taglib.html.FormTag) _005fjspx_005ftagPool_005fhtml_005fform_005fstyleClass_005fmethod_005fenctype_005faction
                  .get(org.apache.struts.taglib.html.FormTag.class);
          _jspx_th_html_005fform_005f0.setPageContext(_jspx_page_context);
          _jspx_th_html_005fform_005f0.setParent(null);
          _jspx_th_html_005fform_005f0.setAction("/ext/epsos/demo/view?actionURL=true");
          _jspx_th_html_005fform_005f0.setMethod("post");
          _jspx_th_html_005fform_005f0.setEnctype("multipart/form-data");
          _jspx_th_html_005fform_005f0.setStyleClass("uni-form");
          int _jspx_eval_html_005fform_005f0 = _jspx_th_html_005fform_005f0.doStartTag();
          if (_jspx_eval_html_005fform_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
              do {
                  out.write("\n");
                  out.write("\n");
                  out.write("<input type=\"hidden\" name=\"choiceMade\" value=\"true\">\n");
                  out.write("\n");

                  String choiceMade = request.getParameter("choiceMade");
                  if (choiceMade == null || choiceMade.equals("false")) {
                      PatientSearchForm formBean = (PatientSearchForm) request.getAttribute("PatientSearchForm");

                      out.write("<fieldset><legend>");
                      out.print(LanguageUtil.get(pageContext, "epsos.demo.search.country"));
                      out.write("</legend>\n");
                      out.write("\t");

                      for (int c = 0; c < formBean.getCountryIds().length; c++) {
                          String countryid = formBean.getCountryIds()[c];
                          String countryName = formBean.getCountryNames()[c];
                          String divClass = "";
                          if (((c + 1) % 3) == 0)
                              divClass = "left";
                          if (((c + 1) % 3) == 1)
                              divClass = "middle";
                          if (((c + 1) % 3) == 2)
                              divClass = "right";

                          out.write("\n");
                          out.write("\t\t\n");
                          out.write("\t\t<div id=\"");
                          out.print(divClass);
                          out.write("\">\n");
                          out.write("\t\t<input  type=\"radio\" name=\"country\" value=\"");
                          out.print(countryid);
                          out.write("\" onClick=\"countrySelectionChanged()\">\n");
                          out.write("\t\t&nbsp;<img style=\"padding-top:20px;\" src=\"");
                          out.print(themeDisplay.getPathThemeImage());
                          out.write("/language/");
                          out.print(countryid);
                          out.write("_flag.gif\" width=\"47\" height=\"26\" title=\"");
                          out.print(countryName);
                          out.write("\" alt=\"");
                          out.print(countryName);
                          out.write("\">\n");
                          out.write("\t\t&nbsp;&nbsp;\n");
                          out.write("\t\t</div>");

                      }

                      out.write("\n");
                      out.write("\t</fieldset>\n");
                      out.write("\t<input type=\"hidden\" name=\"submitButton\" value=\"\">\n");
                      out.write("\t<input type=\"hidden\" name=\"search\" value=\"false\">\n");
                      out.write("\t");

                  } else {

                      out.write('\n');
                      out.write('\n');
                      //  bean:define
                      org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_005fdefine_005f0 = (org.apache.struts.taglib.bean.DefineTag) _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody
                              .get(org.apache.struts.taglib.bean.DefineTag.class);
                      _jspx_th_bean_005fdefine_005f0.setPageContext(_jspx_page_context);
                      _jspx_th_bean_005fdefine_005f0
                              .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_005fform_005f0);
                      _jspx_th_bean_005fdefine_005f0.setId("labels1");
                      _jspx_th_bean_005fdefine_005f0.setName("EpsosPatientSearchForm");
                      _jspx_th_bean_005fdefine_005f0.setProperty("sexNames");
                      int _jspx_eval_bean_005fdefine_005f0 = _jspx_th_bean_005fdefine_005f0.doStartTag();
                      if (_jspx_th_bean_005fdefine_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                          _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody
                                  .reuse(_jspx_th_bean_005fdefine_005f0);
                          return;
                      }
                      _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody
                              .reuse(_jspx_th_bean_005fdefine_005f0);
                      java.lang.Object labels1 = null;
                      labels1 = (java.lang.Object) _jspx_page_context.findAttribute("labels1");
                      out.write('\n');

                      // correct the list of keys for translations to be shown properly
                      String[] labelsList1 = (String[]) labels1;
                      for (int i = 0; i < labelsList1.length; i++) {
                          labelsList1[i] = LanguageUtil.get(pageContext, labelsList1[i]);
                      }

                      out.write("\n");
                      out.write("\n");
                      out.write("<input type=\"hidden\" name=\"search\" value=\"true\">\n");
                      out.write("\n");
                      if (_jspx_meth_tiles_005finsert_005f0(_jspx_th_html_005fform_005f0, _jspx_page_context))
                          return;
                      out.write("\n");
                      out.write("\n");
                      out.write("\n");
                      out.write("<div class=\"block-labels\" style=\"text-align:right;\">\r\n");
                      out.write("\t<div class=\"buttonHolder\">\r\n");
                      out.write("<input type=\"submit\" name=\"submitButton\" value=\"");
                      out.print(LanguageUtil.get(pageContext, "search"));
                      out.write("\">\n");
                      out.write("</div>\n");
                      out.write("</div>\r\n");
                      out.write("\n");
                  }
                  out.write('\n');
                  out.write('\n');
                  int evalDoAfterBody = _jspx_th_html_005fform_005f0.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                      break;
              } while (true);
          }
          if (_jspx_th_html_005fform_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fhtml_005fform_005fstyleClass_005fmethod_005fenctype_005faction
                      .reuse(_jspx_th_html_005fform_005f0);
              return;
          }
          _005fjspx_005ftagPool_005fhtml_005fform_005fstyleClass_005fmethod_005fenctype_005faction
                  .reuse(_jspx_th_html_005fform_005f0);
          out.write('\n');
          out.write('\n');

          String search = request.getParameter("search");
          if (Validator.isNotNull(search) && search.equals("true")) {
              List<EhrPatientClientDto> patientsList = (List<EhrPatientClientDto>) request
                      .getAttribute("patientsList");
              session.setAttribute("patients", patientsList);
              if (patientsList != null && patientsList.size() > 0) {
                  out.write('\n');
                  out.write('\n');
                  //  display:table
                  org.displaytag.tags.TableTag _jspx_th_display_005ftable_005f0 = (org.displaytag.tags.TableTag) _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid
                          .get(org.displaytag.tags.TableTag.class);
                  _jspx_th_display_005ftable_005f0.setPageContext(_jspx_page_context);
                  _jspx_th_display_005ftable_005f0.setParent(null);
                  _jspx_th_display_005ftable_005f0.setUid("patient");
                  _jspx_th_display_005ftable_005f0.setName(new String("patientsList"));
                  _jspx_th_display_005ftable_005f0.setRequestURI("//ext/epsos/demo/view?actionURL=true");
                  _jspx_th_display_005ftable_005f0.setPagesize(25);
                  _jspx_th_display_005ftable_005f0.setSort("list");
                  _jspx_th_display_005ftable_005f0.setStyle("width: 100%;");
                  int _jspx_eval_display_005ftable_005f0 = _jspx_th_display_005ftable_005f0.doStartTag();
                  if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                      java.lang.Object patient = null;
                      java.lang.Integer patient_rowNum = null;
                      if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                          out = _jspx_page_context.pushBody();
                          _jspx_th_display_005ftable_005f0
                                  .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                          _jspx_th_display_005ftable_005f0.doInitBody();
                      }
                      patient = (java.lang.Object) _jspx_page_context.findAttribute("patient");
                      patient_rowNum = (java.lang.Integer) _jspx_page_context.findAttribute("patient_rowNum");
                      do {
                          out.write('\n');
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f0(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f1(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f2(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f3(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f4(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f5(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f6(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          if (_jspx_meth_display_005fsetProperty_005f7(_jspx_th_display_005ftable_005f0,
                                  _jspx_page_context))
                              return;
                          out.write('\n');
                          out.write('\n');
                          out.write('\n');
                          EhrPatientClientDto pat = (EhrPatientClientDto) pageContext.getAttribute("patient");
                          //session.setAttribute(request.getParameter("country") + "_" + "patient_" + pat.getPid().get(0).getPatientID() + "_" + pat.getPid().get(0).getPatientIDType(),pat);

                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f0 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f0.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f0
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f0.setProperty("givenName");
                          _jspx_th_display_005fcolumn_005f0.setTitle(EpsosHelperService
                                  .getPortalTranslation("patient.data.givenname", user.getLanguageId()));
                          int _jspx_eval_display_005fcolumn_005f0 = _jspx_th_display_005fcolumn_005f0
                                  .doStartTag();
                          if (_jspx_th_display_005fcolumn_005f0
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                      .reuse(_jspx_th_display_005fcolumn_005f0);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .reuse(_jspx_th_display_005fcolumn_005f0);
                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f1 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f1.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f1
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f1.setProperty("familyName");
                          _jspx_th_display_005fcolumn_005f1.setTitle(EpsosHelperService
                                  .getPortalTranslation("patient.data.surname", user.getLanguageId()));
                          int _jspx_eval_display_005fcolumn_005f1 = _jspx_th_display_005fcolumn_005f1
                                  .doStartTag();
                          if (_jspx_th_display_005fcolumn_005f1
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                      .reuse(_jspx_th_display_005fcolumn_005f1);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .reuse(_jspx_th_display_005fcolumn_005f1);
                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f2 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fsortable
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f2.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f2
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f2.setTitle(EpsosHelperService
                                  .getPortalTranslation("patient.data.birth.date", user.getLanguageId()));
                          _jspx_th_display_005fcolumn_005f2.setSortable(true);
                          int _jspx_eval_display_005fcolumn_005f2 = _jspx_th_display_005fcolumn_005f2
                                  .doStartTag();
                          if (_jspx_eval_display_005fcolumn_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                              if (_jspx_eval_display_005fcolumn_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                  out = _jspx_page_context.pushBody();
                                  _jspx_th_display_005fcolumn_005f2
                                          .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                  _jspx_th_display_005fcolumn_005f2.doInitBody();
                              }
                              do {
                                  out.write('\n');
                                  if (pat.getBirthdate() != null) {
                                      java.util.Date bday = pat.getBirthdate().toGregorianCalendar().getTime();
                                      out.print(EpsosHelperService.dateFormat.format(bday));
                                  }

                                  out.write('\n');
                                  int evalDoAfterBody = _jspx_th_display_005fcolumn_005f2.doAfterBody();
                                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                      break;
                              } while (true);
                              if (_jspx_eval_display_005fcolumn_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                  out = _jspx_page_context.popBody();
                              }
                          }
                          if (_jspx_th_display_005fcolumn_005f2
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fsortable
                                      .reuse(_jspx_th_display_005fcolumn_005f2);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fsortable
                                  .reuse(_jspx_th_display_005fcolumn_005f2);
                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f3 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f3.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f3
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f3.setProperty("streetAddress");
                          _jspx_th_display_005fcolumn_005f3.setTitle(EpsosHelperService
                                  .getPortalTranslation("patient.data.street.address", user.getLanguageId()));
                          int _jspx_eval_display_005fcolumn_005f3 = _jspx_th_display_005fcolumn_005f3
                                  .doStartTag();
                          if (_jspx_th_display_005fcolumn_005f3
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                      .reuse(_jspx_th_display_005fcolumn_005f3);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .reuse(_jspx_th_display_005fcolumn_005f3);
                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f4 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f4.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f4
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f4.setProperty("zip");
                          _jspx_th_display_005fcolumn_005f4.setTitle(EpsosHelperService
                                  .getPortalTranslation("patient.data.code", user.getLanguageId()));
                          int _jspx_eval_display_005fcolumn_005f4 = _jspx_th_display_005fcolumn_005f4
                                  .doStartTag();
                          if (_jspx_th_display_005fcolumn_005f4
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                      .reuse(_jspx_th_display_005fcolumn_005f4);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .reuse(_jspx_th_display_005fcolumn_005f4);
                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f5 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f5.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f5
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f5.setProperty("city");
                          _jspx_th_display_005fcolumn_005f5.setTitle(EpsosHelperService
                                  .getPortalTranslation("patient.data.city", user.getLanguageId()));
                          int _jspx_eval_display_005fcolumn_005f5 = _jspx_th_display_005fcolumn_005f5
                                  .doStartTag();
                          if (_jspx_th_display_005fcolumn_005f5
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                      .reuse(_jspx_th_display_005fcolumn_005f5);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .reuse(_jspx_th_display_005fcolumn_005f5);
                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f6 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f6.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f6
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f6.setProperty("country");
                          _jspx_th_display_005fcolumn_005f6.setTitle(EpsosHelperService
                                  .getPortalTranslation("patient.data.country", user.getLanguageId()));
                          int _jspx_eval_display_005fcolumn_005f6 = _jspx_th_display_005fcolumn_005f6
                                  .doStartTag();
                          if (_jspx_th_display_005fcolumn_005f6
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                      .reuse(_jspx_th_display_005fcolumn_005f6);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005ftitle_005fproperty_005fnobody
                                  .reuse(_jspx_th_display_005fcolumn_005f6);
                          out.write('\n');
                          out.write('\n');
                          //  display:column
                          org.displaytag.tags.ColumnTag _jspx_th_display_005fcolumn_005f7 = (org.displaytag.tags.ColumnTag) _005fjspx_005ftagPool_005fdisplay_005fcolumn_005fstyle_005fmedia
                                  .get(org.displaytag.tags.ColumnTag.class);
                          _jspx_th_display_005fcolumn_005f7.setPageContext(_jspx_page_context);
                          _jspx_th_display_005fcolumn_005f7
                                  .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_display_005ftable_005f0);
                          _jspx_th_display_005fcolumn_005f7.setMedia("html");
                          _jspx_th_display_005fcolumn_005f7.setStyle("white-space:nowrap;");
                          int _jspx_eval_display_005fcolumn_005f7 = _jspx_th_display_005fcolumn_005f7
                                  .doStartTag();
                          if (_jspx_eval_display_005fcolumn_005f7 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                              if (_jspx_eval_display_005fcolumn_005f7 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                  out = _jspx_page_context.pushBody();
                                  _jspx_th_display_005fcolumn_005f7
                                          .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                  _jspx_th_display_005fcolumn_005f7.doInitBody();
                              }
                              do {
                                  out.write("\n");
                                  out.write("\n");
                                  out.write("<a target=\"new\" title=\"");
                                  out.print(EpsosHelperService.getPortalTranslation("navi.info.patient.agreement",
                                          user.getLanguageId()));
                                  out.write("\" href=\"");
                                  //  portlet:actionURL
                                  com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f0 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                          .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                  _jspx_th_portlet_005factionURL_005f0.setPageContext(_jspx_page_context);
                                  _jspx_th_portlet_005factionURL_005f0.setParent(
                                          (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f7);
                                  _jspx_th_portlet_005factionURL_005f0
                                          .setWindowState(LiferayWindowState.EXCLUSIVE.toString());
                                  int _jspx_eval_portlet_005factionURL_005f0 = _jspx_th_portlet_005factionURL_005f0
                                          .doStartTag();
                                  if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                      if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                          out = _jspx_page_context.pushBody();
                                          _jspx_th_portlet_005factionURL_005f0
                                                  .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                          _jspx_th_portlet_005factionURL_005f0.doInitBody();
                                      }
                                      do {
                                          out.write('\n');
                                          if (_jspx_meth_portlet_005fparam_005f0(
                                                  _jspx_th_portlet_005factionURL_005f0, _jspx_page_context))
                                              return;
                                          out.write('\n');
                                          //  portlet:param
                                          com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f1 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .get(com.liferay.taglib.util.ParamTag.class);
                                          _jspx_th_portlet_005fparam_005f1.setPageContext(_jspx_page_context);
                                          _jspx_th_portlet_005fparam_005f1.setParent(
                                                  (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f0);
                                          _jspx_th_portlet_005fparam_005f1.setName("patID");
                                          _jspx_th_portlet_005fparam_005f1
                                                  .setValue(patientsList.indexOf(pat) + "");
                                          int _jspx_eval_portlet_005fparam_005f1 = _jspx_th_portlet_005fparam_005f1
                                                  .doStartTag();
                                          if (_jspx_th_portlet_005fparam_005f1
                                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f1);
                                              return;
                                          }
                                          _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .reuse(_jspx_th_portlet_005fparam_005f1);
                                          out.write('\n');
                                          //  portlet:param
                                          com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f2 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .get(com.liferay.taglib.util.ParamTag.class);
                                          _jspx_th_portlet_005fparam_005f2.setPageContext(_jspx_page_context);
                                          _jspx_th_portlet_005fparam_005f2.setParent(
                                                  (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f0);
                                          _jspx_th_portlet_005fparam_005f2.setName("country");
                                          _jspx_th_portlet_005fparam_005f2
                                                  .setValue(request.getParameter("country"));
                                          int _jspx_eval_portlet_005fparam_005f2 = _jspx_th_portlet_005fparam_005f2
                                                  .doStartTag();
                                          if (_jspx_th_portlet_005fparam_005f2
                                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f2);
                                              return;
                                          }
                                          _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .reuse(_jspx_th_portlet_005fparam_005f2);
                                          out.write('\n');
                                          int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f0
                                                  .doAfterBody();
                                          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                              break;
                                      } while (true);
                                      if (_jspx_eval_portlet_005factionURL_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                          out = _jspx_page_context.popBody();
                                      }
                                  }
                                  if (_jspx_th_portlet_005factionURL_005f0
                                          .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                      _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                              .reuse(_jspx_th_portlet_005factionURL_005f0);
                                      return;
                                  }
                                  _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                          .reuse(_jspx_th_portlet_005factionURL_005f0);
                                  out.write("\">\n");
                                  out.write("<img src=\"");
                                  out.print(themeDisplay.getPathThemeImage());
                                  out.write("/common/print.png\" alt=\"consent\">\n");
                                  out.write("</a>\n");
                                  out.write("&nbsp;\n");
                                  boolean allowCreateConsent = GetterUtil.getBoolean(
                                          gnomon.util.GnPropsUtil.get("portalb", "epsos.consent.allow.create"),
                                          false);
                                  out.write('\n');
                                  if (allowCreateConsent) {
                                      out.write("\n");
                                      out.write("<a title=\"");
                                      out.print(EpsosHelperService.getPortalTranslation(
                                              "navi.info.patient.agreement", user.getLanguageId()));
                                      out.write("\" href=\"javascript:openDialog('");
                                      //  portlet:actionURL
                                      com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f1 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                              .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                      _jspx_th_portlet_005factionURL_005f1.setPageContext(_jspx_page_context);
                                      _jspx_th_portlet_005factionURL_005f1.setParent(
                                              (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f7);
                                      _jspx_th_portlet_005factionURL_005f1
                                              .setWindowState(LiferayWindowState.POP_UP.toString());
                                      int _jspx_eval_portlet_005factionURL_005f1 = _jspx_th_portlet_005factionURL_005f1
                                              .doStartTag();
                                      if (_jspx_eval_portlet_005factionURL_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                          if (_jspx_eval_portlet_005factionURL_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                              out = _jspx_page_context.pushBody();
                                              _jspx_th_portlet_005factionURL_005f1
                                                      .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                              _jspx_th_portlet_005factionURL_005f1.doInitBody();
                                          }
                                          do {
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f3(
                                                      _jspx_th_portlet_005factionURL_005f1, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f4(
                                                      _jspx_th_portlet_005factionURL_005f1, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f5(
                                                      _jspx_th_portlet_005factionURL_005f1, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f6 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f6.setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f6.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f1);
                                              _jspx_th_portlet_005fparam_005f6.setName("patID");
                                              _jspx_th_portlet_005fparam_005f6
                                                      .setValue(patientsList.indexOf(pat) + "");
                                              int _jspx_eval_portlet_005fparam_005f6 = _jspx_th_portlet_005fparam_005f6
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f6
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f6);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f6);
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f7(
                                                      _jspx_th_portlet_005factionURL_005f1, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f8 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f8.setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f8.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f1);
                                              _jspx_th_portlet_005fparam_005f8.setName("country");
                                              _jspx_th_portlet_005fparam_005f8
                                                      .setValue(request.getParameter("country"));
                                              int _jspx_eval_portlet_005fparam_005f8 = _jspx_th_portlet_005fparam_005f8
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f8
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f8);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f8);
                                              out.write('\n');
                                              int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f1
                                                      .doAfterBody();
                                              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                                  break;
                                          } while (true);
                                          if (_jspx_eval_portlet_005factionURL_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                              out = _jspx_page_context.popBody();
                                          }
                                      }
                                      if (_jspx_th_portlet_005factionURL_005f1
                                              .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                          _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                                  .reuse(_jspx_th_portlet_005factionURL_005f1);
                                          return;
                                      }
                                      _005fjspx_005ftagPool_005fportlet_005factionURL_005fwindowState
                                              .reuse(_jspx_th_portlet_005factionURL_005f1);
                                      out.write("', 600,800);\">\n");
                                      out.write("<img src=\"");
                                      out.print(themeDisplay.getPathThemeImage());
                                      out.write("/common/assign_user_permissions.png\" alt=\"consent\">\n");
                                      out.write("</a>\n");
                                      out.write("&nbsp;\n");
                                  }
                                  out.write("\n");
                                  out.write("<a title=\"");
                                  out.print(LanguageUtil.get(pageContext, "epsos.patient.card.view"));
                                  out.write("\" href=\"");
                                  //  portlet:actionURL
                                  com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f2 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL
                                          .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                  _jspx_th_portlet_005factionURL_005f2.setPageContext(_jspx_page_context);
                                  _jspx_th_portlet_005factionURL_005f2.setParent(
                                          (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f7);
                                  int _jspx_eval_portlet_005factionURL_005f2 = _jspx_th_portlet_005factionURL_005f2
                                          .doStartTag();
                                  if (_jspx_eval_portlet_005factionURL_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                      if (_jspx_eval_portlet_005factionURL_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                          out = _jspx_page_context.pushBody();
                                          _jspx_th_portlet_005factionURL_005f2
                                                  .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                          _jspx_th_portlet_005factionURL_005f2.doInitBody();
                                      }
                                      do {
                                          out.write('\n');
                                          if (_jspx_meth_portlet_005fparam_005f9(
                                                  _jspx_th_portlet_005factionURL_005f2, _jspx_page_context))
                                              return;
                                          out.write('\n');
                                          if (_jspx_meth_portlet_005fparam_005f10(
                                                  _jspx_th_portlet_005factionURL_005f2, _jspx_page_context))
                                              return;
                                          out.write('\n');
                                          if (_jspx_meth_portlet_005fparam_005f11(
                                                  _jspx_th_portlet_005factionURL_005f2, _jspx_page_context))
                                              return;
                                          out.write('\n');
                                          //  portlet:param
                                          com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f12 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .get(com.liferay.taglib.util.ParamTag.class);
                                          _jspx_th_portlet_005fparam_005f12.setPageContext(_jspx_page_context);
                                          _jspx_th_portlet_005fparam_005f12.setParent(
                                                  (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f2);
                                          _jspx_th_portlet_005fparam_005f12.setName("patID");
                                          _jspx_th_portlet_005fparam_005f12
                                                  .setValue(patientsList.indexOf(pat) + "");
                                          int _jspx_eval_portlet_005fparam_005f12 = _jspx_th_portlet_005fparam_005f12
                                                  .doStartTag();
                                          if (_jspx_th_portlet_005fparam_005f12
                                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f12);
                                              return;
                                          }
                                          _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .reuse(_jspx_th_portlet_005fparam_005f12);
                                          out.write('\n');
                                          if (_jspx_meth_portlet_005fparam_005f13(
                                                  _jspx_th_portlet_005factionURL_005f2, _jspx_page_context))
                                              return;
                                          out.write('\n');
                                          //  portlet:param
                                          com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f14 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .get(com.liferay.taglib.util.ParamTag.class);
                                          _jspx_th_portlet_005fparam_005f14.setPageContext(_jspx_page_context);
                                          _jspx_th_portlet_005fparam_005f14.setParent(
                                                  (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f2);
                                          _jspx_th_portlet_005fparam_005f14.setName("country");
                                          _jspx_th_portlet_005fparam_005f14
                                                  .setValue(request.getParameter("country"));
                                          int _jspx_eval_portlet_005fparam_005f14 = _jspx_th_portlet_005fparam_005f14
                                                  .doStartTag();
                                          if (_jspx_th_portlet_005fparam_005f14
                                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f14);
                                              return;
                                          }
                                          _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .reuse(_jspx_th_portlet_005fparam_005f14);
                                          out.write('\n');
                                          //  portlet:param
                                          com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f15 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .get(com.liferay.taglib.util.ParamTag.class);
                                          _jspx_th_portlet_005fparam_005f15.setPageContext(_jspx_page_context);
                                          _jspx_th_portlet_005fparam_005f15.setParent(
                                                  (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f2);
                                          _jspx_th_portlet_005fparam_005f15.setName("redirect");
                                          _jspx_th_portlet_005fparam_005f15.setValue(currentURL);
                                          int _jspx_eval_portlet_005fparam_005f15 = _jspx_th_portlet_005fparam_005f15
                                                  .doStartTag();
                                          if (_jspx_th_portlet_005fparam_005f15
                                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f15);
                                              return;
                                          }
                                          _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                  .reuse(_jspx_th_portlet_005fparam_005f15);
                                          out.write('\n');
                                          int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f2
                                                  .doAfterBody();
                                          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                              break;
                                      } while (true);
                                      if (_jspx_eval_portlet_005factionURL_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                          out = _jspx_page_context.popBody();
                                      }
                                  }
                                  if (_jspx_th_portlet_005factionURL_005f2
                                          .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                      _005fjspx_005ftagPool_005fportlet_005factionURL
                                              .reuse(_jspx_th_portlet_005factionURL_005f2);
                                      return;
                                  }
                                  _005fjspx_005ftagPool_005fportlet_005factionURL
                                          .reuse(_jspx_th_portlet_005factionURL_005f2);
                                  out.write("\"><img src=\"");
                                  out.print(themeDisplay.getPathThemeImage());
                                  out.write("/common/view.png\" alt=\"view\"></a>\n");
                                  out.write("&nbsp;\n");
                                  if (true || EpsosHelperService.getInstance()
                                          .hasCurrentUserPhysicianRole(request)) {
                                      out.write("\n");
                                      out.write("<a title=\"");
                                      out.print(EpsosHelperService.getPortalTranslation("navi.report.summary",
                                              user.getLanguageId()));
                                      out.write("\" href=\"");
                                      //  portlet:actionURL
                                      com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f3 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL
                                              .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                      _jspx_th_portlet_005factionURL_005f3.setPageContext(_jspx_page_context);
                                      _jspx_th_portlet_005factionURL_005f3.setParent(
                                              (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f7);
                                      int _jspx_eval_portlet_005factionURL_005f3 = _jspx_th_portlet_005factionURL_005f3
                                              .doStartTag();
                                      if (_jspx_eval_portlet_005factionURL_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                          if (_jspx_eval_portlet_005factionURL_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                              out = _jspx_page_context.pushBody();
                                              _jspx_th_portlet_005factionURL_005f3
                                                      .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                              _jspx_th_portlet_005factionURL_005f3.doInitBody();
                                          }
                                          do {
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f16(
                                                      _jspx_th_portlet_005factionURL_005f3, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f17(
                                                      _jspx_th_portlet_005factionURL_005f3, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f18(
                                                      _jspx_th_portlet_005factionURL_005f3, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f19 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f19
                                                      .setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f19.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f3);
                                              _jspx_th_portlet_005fparam_005f19.setName("patID");
                                              _jspx_th_portlet_005fparam_005f19
                                                      .setValue(patientsList.indexOf(pat) + "");
                                              int _jspx_eval_portlet_005fparam_005f19 = _jspx_th_portlet_005fparam_005f19
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f19
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f19);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f19);
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f20(
                                                      _jspx_th_portlet_005factionURL_005f3, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f21 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f21
                                                      .setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f21.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f3);
                                              _jspx_th_portlet_005fparam_005f21.setName("country");
                                              _jspx_th_portlet_005fparam_005f21
                                                      .setValue(request.getParameter("country"));
                                              int _jspx_eval_portlet_005fparam_005f21 = _jspx_th_portlet_005fparam_005f21
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f21
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f21);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f21);
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f22 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f22
                                                      .setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f22.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f3);
                                              _jspx_th_portlet_005fparam_005f22.setName("redirect");
                                              _jspx_th_portlet_005fparam_005f22.setValue(currentURL);
                                              int _jspx_eval_portlet_005fparam_005f22 = _jspx_th_portlet_005fparam_005f22
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f22
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f22);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f22);
                                              out.write('\n');
                                              int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f3
                                                      .doAfterBody();
                                              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                                  break;
                                          } while (true);
                                          if (_jspx_eval_portlet_005factionURL_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                              out = _jspx_page_context.popBody();
                                          }
                                      }
                                      if (_jspx_th_portlet_005factionURL_005f3
                                              .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                          _005fjspx_005ftagPool_005fportlet_005factionURL
                                                  .reuse(_jspx_th_portlet_005factionURL_005f3);
                                          return;
                                      }
                                      _005fjspx_005ftagPool_005fportlet_005factionURL
                                              .reuse(_jspx_th_portlet_005factionURL_005f3);
                                      out.write("\"><img src=\"");
                                      out.print(themeDisplay.getPathThemeImage());
                                      out.write("/common/all_pages.png\" alt=\"documents\"></a>\n");
                                  }
                                  out.write('\n');
                                  // if (EpsosHelperService.getInstance().hasCurrentUserPharmacistRole(request)) { 
                                  out.write('\n');
                                  if (true) {
                                      out.write("\n");
                                      out.write("&nbsp;\n");
                                      out.write("<a title=\"");
                                      out.print(EpsosHelperService.getPortalTranslation(
                                              "navi.report.prescription", user.getLanguageId()));
                                      out.write("\" href=\"");
                                      //  portlet:actionURL
                                      com.liferay.taglib.portlet.ActionURLTag _jspx_th_portlet_005factionURL_005f4 = (com.liferay.taglib.portlet.ActionURLTag) _005fjspx_005ftagPool_005fportlet_005factionURL
                                              .get(com.liferay.taglib.portlet.ActionURLTag.class);
                                      _jspx_th_portlet_005factionURL_005f4.setPageContext(_jspx_page_context);
                                      _jspx_th_portlet_005factionURL_005f4.setParent(
                                              (javax.servlet.jsp.tagext.Tag) _jspx_th_display_005fcolumn_005f7);
                                      int _jspx_eval_portlet_005factionURL_005f4 = _jspx_th_portlet_005factionURL_005f4
                                              .doStartTag();
                                      if (_jspx_eval_portlet_005factionURL_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                          if (_jspx_eval_portlet_005factionURL_005f4 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                              out = _jspx_page_context.pushBody();
                                              _jspx_th_portlet_005factionURL_005f4
                                                      .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                              _jspx_th_portlet_005factionURL_005f4.doInitBody();
                                          }
                                          do {
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f23(
                                                      _jspx_th_portlet_005factionURL_005f4, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f24(
                                                      _jspx_th_portlet_005factionURL_005f4, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f25(
                                                      _jspx_th_portlet_005factionURL_005f4, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f26 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f26
                                                      .setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f26.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f4);
                                              _jspx_th_portlet_005fparam_005f26.setName("country");
                                              _jspx_th_portlet_005fparam_005f26
                                                      .setValue(request.getParameter("country"));
                                              int _jspx_eval_portlet_005fparam_005f26 = _jspx_th_portlet_005fparam_005f26
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f26
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f26);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f26);
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f27 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f27
                                                      .setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f27.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f4);
                                              _jspx_th_portlet_005fparam_005f27.setName("patID");
                                              _jspx_th_portlet_005fparam_005f27
                                                      .setValue(patientsList.indexOf(pat) + "");
                                              int _jspx_eval_portlet_005fparam_005f27 = _jspx_th_portlet_005fparam_005f27
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f27
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f27);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f27);
                                              out.write('\n');
                                              if (_jspx_meth_portlet_005fparam_005f28(
                                                      _jspx_th_portlet_005factionURL_005f4, _jspx_page_context))
                                                  return;
                                              out.write('\n');
                                              //  portlet:param
                                              com.liferay.taglib.util.ParamTag _jspx_th_portlet_005fparam_005f29 = (com.liferay.taglib.util.ParamTag) _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .get(com.liferay.taglib.util.ParamTag.class);
                                              _jspx_th_portlet_005fparam_005f29
                                                      .setPageContext(_jspx_page_context);
                                              _jspx_th_portlet_005fparam_005f29.setParent(
                                                      (javax.servlet.jsp.tagext.Tag) _jspx_th_portlet_005factionURL_005f4);
                                              _jspx_th_portlet_005fparam_005f29.setName("redirect");
                                              _jspx_th_portlet_005fparam_005f29.setValue(currentURL);
                                              int _jspx_eval_portlet_005fparam_005f29 = _jspx_th_portlet_005fparam_005f29
                                                      .doStartTag();
                                              if (_jspx_th_portlet_005fparam_005f29
                                                      .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                  _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                          .reuse(_jspx_th_portlet_005fparam_005f29);
                                                  return;
                                              }
                                              _005fjspx_005ftagPool_005fportlet_005fparam_005fvalue_005fname_005fnobody
                                                      .reuse(_jspx_th_portlet_005fparam_005f29);
                                              out.write('\n');
                                              int evalDoAfterBody = _jspx_th_portlet_005factionURL_005f4
                                                      .doAfterBody();
                                              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                                  break;
                                          } while (true);
                                          if (_jspx_eval_portlet_005factionURL_005f4 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                              out = _jspx_page_context.popBody();
                                          }
                                      }
                                      if (_jspx_th_portlet_005factionURL_005f4
                                              .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                          _005fjspx_005ftagPool_005fportlet_005factionURL
                                                  .reuse(_jspx_th_portlet_005factionURL_005f4);
                                          return;
                                      }
                                      _005fjspx_005ftagPool_005fportlet_005factionURL
                                              .reuse(_jspx_th_portlet_005factionURL_005f4);
                                      out.write("\"><img src=\"");
                                      out.print(themeDisplay.getPathThemeImage());
                                      out.write(
                                              "/common/manage_task.png\" alt=\"epsos.demo.prescription.list\"></a>\n");
                                  }
                                  out.write('\n');
                                  out.write('\n');
                                  int evalDoAfterBody = _jspx_th_display_005fcolumn_005f7.doAfterBody();
                                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                      break;
                              } while (true);
                              if (_jspx_eval_display_005fcolumn_005f7 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                  out = _jspx_page_context.popBody();
                              }
                          }
                          if (_jspx_th_display_005fcolumn_005f7
                                  .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                              _005fjspx_005ftagPool_005fdisplay_005fcolumn_005fstyle_005fmedia
                                      .reuse(_jspx_th_display_005fcolumn_005f7);
                              return;
                          }
                          _005fjspx_005ftagPool_005fdisplay_005fcolumn_005fstyle_005fmedia
                                  .reuse(_jspx_th_display_005fcolumn_005f7);
                          out.write('\n');
                          out.write('\n');
                          out.write('\n');
                          int evalDoAfterBody = _jspx_th_display_005ftable_005f0.doAfterBody();
                          patient = (java.lang.Object) _jspx_page_context.findAttribute("patient");
                          patient_rowNum = (java.lang.Integer) _jspx_page_context.findAttribute("patient_rowNum");
                          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                              break;
                      } while (true);
                      if (_jspx_eval_display_005ftable_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                          out = _jspx_page_context.popBody();
                      }
                  }
                  if (_jspx_th_display_005ftable_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                      _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid
                              .reuse(_jspx_th_display_005ftable_005f0);
                      return;
                  }
                  _005fjspx_005ftagPool_005fdisplay_005ftable_005fstyle_005fsort_005frequestURI_005fpagesize_005fname_005fid
                          .reuse(_jspx_th_display_005ftable_005f0);
                  out.write('\n');
                  out.write('\n');
              } else {
                  out.write("\n");
                  out.write("\t   <span class=\"portlet-msg-alert\">\n");
                  out.print(EpsosHelperService.getInstance().getPortalTranslation("patient.list.no.patient",
                          themeDisplay.getLanguageId()));
                  out.write("\n");
                  out.write("</span>\n");
              }
          }
          out.write('\n');
          out.write('\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);
      }
  }