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

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

Introduction

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

Prototype

String JAVAX_PORTLET_RESPONSE

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

Click Source Link

Usage

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.forms.struts_005fdiv_005fdate_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  2s  . 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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        try {
            String namespace = ((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace();

            String formFieldName;
            String formFieldKey;
            boolean required;
            String formFieldType;
            String value = null;
            String fieldDateFormat = "";
            boolean hidden;
            boolean readonly;
            String collectionName;
            String collectionAttrName;
            String collectionProperty;
            String collectionLabel;
            int field_size;
            int textAreaCols;
            int textAreaRows;
            int popupWidth;
            int popupHeight;
            String helpMessage = null;
            com.ext.sql.StrutsFormFields form_field;

            boolean textAreaHtmlFlag = false;
            String lookupAction = "";
            boolean previous_fieldset = false;
            boolean secretField = false;

            form_field = (com.ext.sql.StrutsFormFields) request.getAttribute(namespace + "_STRUTS_DIV_FIELD");
            String curFormName = (String) request.getAttribute(namespace + "_STRUTS_DIV_curFormName");
            String onChange = (form_field.getOnChange() != null) ? form_field.getOnChange() : "";

            formFieldName = form_field.getFormFieldName();
            formFieldKey = form_field.getFormFieldKey();
            formFieldType = form_field.getFormFieldType();
            fieldDateFormat = form_field.getDateFormat();
            if (fieldDateFormat == null || fieldDateFormat.equals(""))
                fieldDateFormat = CommonDefs.DATE_FORMAT_JSCRIPT;
            hidden = form_field.isHidden();
            readonly = form_field.isReadonly();
            required = form_field.isRequired();
            collectionName = form_field.getCollectionName();
            collectionAttrName = form_field.getCollectionAttrName();
            collectionProperty = form_field.getCollectionProperty();
            collectionLabel = form_field.getCollectionLabel();
            field_size = form_field.getField_size();
            textAreaCols = form_field.getTextAreaCols();
            textAreaRows = form_field.getTextAreaRows();
            popupWidth = form_field.getPopupWidth();
            popupHeight = form_field.getPopupHeight();
            secretField = form_field.isSecretTextField();
            helpMessage = form_field.getHelpMessage();
            String colour = null;
            String bgcolour = null;
            value = form_field.getValue();
            if (Validator.isNull(value) && Validator.isNotNull(request.getParameter(formFieldName)))
                value = request.getParameter(formFieldName);
            colour = form_field.getColour();
            bgcolour = colour;
            if (colour != null && colour.equals("inherit"))
                bgcolour = null;
            // force span colour to always be the default
            colour = "inherit";

            if (formFieldType.equals("date")) {
                boolean clearDate = form_field.isClearDate();

                if (form_field.isDynamicField()) {
                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t<input type=\"hidden\" id=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\">\r\n");
                        out.write("     \t\t");

                    } else if (readonly) {
                        out.write("\r\n");
                        out.write("\t\t\t\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t<label style=\"color:");
                        out.print(colour);
                        out.write("\" for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t\t\t\t<input ");
                        if (bgcolour != null) {
                            out.write(" style=\"background-color:");
                            out.print(bgcolour);
                            out.write('"');
                            out.write(' ');
                        }
                        out.write(" type=\"text\" id=\"");
                        out.print(formFieldName);
                        out.write("\"  name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\" readonly=\"");
                        out.print(readonly);
                        out.write("\">\r\n");
                        out.write("\t\t\t\t</div>\r\n");
                        out.write("\t\t\t\t");

                    } else {

                        out.write("\r\n");
                        out.write("\t\t\t\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t<label style=\"color:");
                        out.print(colour);
                        out.write("\" for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t\t\t\t<input ");
                        if (bgcolour != null) {
                            out.write(" style=\"background-color:");
                            out.print(bgcolour);
                            out.write('"');
                            out.write(' ');
                        }
                        out.write(" type=\"text\" id=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\"  styleId=\"");
                        out.print(formFieldName);
                        out.write("\" readonly=\"true\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\" onchange=\"");
                        out.print(onChange);
                        out.write("\">\r\n");
                        out.write("\t\t\t\t<img src=\"");
                        out.print(themeDisplay.getPathThemeImage());
                        out.write("/common/calendar.png\" id=\"f_");
                        out.print(formFieldName);
                        out.write(
                                "\" style=\"cursor: pointer; border: 0px solid red;\" title=\"Date selector\" alt=\"Date selector\" onmouseover=\"this.style.background='red';\" onmouseout=\"this.style.background=''\" />\r\n");
                        out.write("    \t\t");
                        if (clearDate) {
                            out.write("\r\n");
                            out.write("\t\t\t    <img src=\"");
                            out.print(themeDisplay.getPathThemeImage() + "/common/close.png");
                            out.write("\" id=\"f_");
                            out.print(formFieldName);
                            out.write("\" style=\"cursor: pointer; border: 0px solid red;\" title=\"");
                            out.print(LanguageUtil.get(pageContext, "clear"));
                            out.write("\" alt=\"");
                            out.print(LanguageUtil.get(pageContext, "clear"));
                            out.write("\" onclick=\"var dateEl = document.getElementById('");
                            out.print(formFieldName);
                            out.write("');if (dateEl != null) {dateEl.value=''};\" />\r\n");
                            out.write("\t\t\t  ");
                        }
                        out.write("\r\n");
                        out.write("    \t\t");
                        if (required) {
                            out.write("<em>*</em>");
                        }
                        out.write("\r\n");
                        out.write("   \t\t \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f0 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f0 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                            out.write("\r\n");
                            out.write("\t    \t");
                        }
                        out.write("\r\n");
                        out.write("    \t\t");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f0 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f0.setParent(null);
                        _jspx_th_html_005ferrors_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f0 = _jspx_th_html_005ferrors_005f0.doStartTag();
                        if (_jspx_th_html_005ferrors_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f0);
                        out.write("\r\n");
                        out.write("    \t\t\r\n");
                        out.write("\t\t\t\t<script type=\"text/javascript\">\r\n");
                        out.write("\t\t\t\t    Calendar.setup({\r\n");
                        out.write("\t\t\t\t        inputField     :    \"");
                        out.print(formFieldName);
                        out.write("\",     // id of the input field\r\n");
                        out.write("\t\t\t\t        button         :    \"f_");
                        out.print(formFieldName);
                        out.write("\",  // trigger for the calendar (button ID)\r\n");
                        out.write(
                                "\t\t\t\t        align          :    \"Tl\",           // alignment (defaults to \"Bl\")\r\n");
                        out.write("\t\t\t\t\t\t\t\tifFormat    : \"");
                        out.print(fieldDateFormat);
                        out.write("\",\r\n");
                        out.write("\t\t\t\t\t\t\t\tdaFormat : \"");
                        out.print(fieldDateFormat);
                        out.write("\",\r\n");
                        out.write("\t\t\t\t\t\t\t\tshowsTime :true,\r\n");
                        out.write("\t\t\t\t        singleClick    :    true,\r\n");
                        out.write("\t\t\t\t        firstDay       : \"1\"\r\n");
                        out.write("\t\t\t\t    });\r\n");
                        out.write("\t\t\t\t</script>\r\n");
                        out.write("                <noscript></noscript>\r\n");
                        out.write("\t");
                    }

                } else {

                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t");
                        //  html:hidden
                        org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f0 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.HiddenTag.class);
                        _jspx_th_html_005fhidden_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005fhidden_005f0.setParent(null);
                        _jspx_th_html_005fhidden_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005fhidden_005f0 = _jspx_th_html_005fhidden_005f0.doStartTag();
                        if (_jspx_th_html_005fhidden_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005fhidden_005f0);
                        out.write("\r\n");
                        out.write("     \t\t");

                    } else if (readonly) {
                        out.write("\r\n");
                        out.write("\t\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("     \t");
                        //  html:hidden
                        org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f1 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.HiddenTag.class);
                        _jspx_th_html_005fhidden_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_html_005fhidden_005f1.setParent(null);
                        _jspx_th_html_005fhidden_005f1.setProperty(formFieldName);
                        int _jspx_eval_html_005fhidden_005f1 = _jspx_th_html_005fhidden_005f1.doStartTag();
                        if (_jspx_th_html_005fhidden_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005fhidden_005f1);
                        out.write("\r\n");
                        out.write("     \t");
                        //  bean:write
                        org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_005fwrite_005f0 = (org.apache.struts.taglib.bean.WriteTag) _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                .get(org.apache.struts.taglib.bean.WriteTag.class);
                        _jspx_th_bean_005fwrite_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_bean_005fwrite_005f0.setParent(null);
                        _jspx_th_bean_005fwrite_005f0.setName(curFormName);
                        _jspx_th_bean_005fwrite_005f0.setProperty(formFieldName);
                        int _jspx_eval_bean_005fwrite_005f0 = _jspx_th_bean_005fwrite_005f0.doStartTag();
                        if (_jspx_th_bean_005fwrite_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                    .reuse(_jspx_th_bean_005fwrite_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                .reuse(_jspx_th_bean_005fwrite_005f0);
                        out.write("\r\n");
                        out.write("     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f1 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f1 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                            out.write("\r\n");
                            out.write("\t    ");
                        }
                        out.write("\r\n");
                        out.write("    </div>\r\n");
                        out.write("\t\t");

                    } else {

                        out.write("\r\n");
                        out.write("\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\r\n");
                        out.write("\t");
                        //  html:text
                        org.apache.struts.taglib.html.TextTag _jspx_th_html_005ftext_005f0 = (org.apache.struts.taglib.html.TextTag) _005fjspx_005ftagPool_005fhtml_005ftext_005fstyleId_005freadonly_005fproperty_005fonchange_005falt_005fnobody
                                .get(org.apache.struts.taglib.html.TextTag.class);
                        _jspx_th_html_005ftext_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ftext_005f0.setParent(null);
                        _jspx_th_html_005ftext_005f0.setAlt(LanguageUtil.get(pageContext, formFieldKey));
                        _jspx_th_html_005ftext_005f0.setProperty(formFieldName);
                        _jspx_th_html_005ftext_005f0.setStyleId(formFieldName);
                        _jspx_th_html_005ftext_005f0.setReadonly(true);
                        _jspx_th_html_005ftext_005f0.setOnchange(onChange);
                        int _jspx_eval_html_005ftext_005f0 = _jspx_th_html_005ftext_005f0.doStartTag();
                        if (_jspx_th_html_005ftext_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ftext_005fstyleId_005freadonly_005fproperty_005fonchange_005falt_005fnobody
                                    .reuse(_jspx_th_html_005ftext_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ftext_005fstyleId_005freadonly_005fproperty_005fonchange_005falt_005fnobody
                                .reuse(_jspx_th_html_005ftext_005f0);
                        out.write("\r\n");
                        out.write("\t<img src=\"");
                        out.print(themeDisplay.getPathThemeImage());
                        out.write("/common/calendar.png\" id=\"f_");
                        out.print(formFieldName);
                        out.write(
                                "\" style=\"cursor: pointer; border: 0px solid red;\" title=\"Date selector\" alt=\"Date selector\" onmouseover=\"this.style.background='red';\" onmouseout=\"this.style.background=''\" />\r\n");
                        out.write("    ");
                        if (clearDate) {
                            out.write("\r\n");
                            out.write("    <img src=\"");
                            out.print(themeDisplay.getPathThemeImage() + "/common/close.png");
                            out.write("\" id=\"f_");
                            out.print(formFieldName);
                            out.write("\" style=\"cursor: pointer; border: 0px solid red;\" title=\"");
                            out.print(LanguageUtil.get(pageContext, "clear"));
                            out.write("\" alt=\"");
                            out.print(LanguageUtil.get(pageContext, "clear"));
                            out.write("\" onclick=\"var dateEl = document.getElementById('");
                            out.print(formFieldName);
                            out.write("');if (dateEl != null) {dateEl.value=''};\" />\r\n");
                            out.write("    ");
                        }
                        out.write("\r\n");
                        out.write("\r\n");
                        out.write("    ");
                        if (required) {
                            out.write("<em>*</em>");
                        }
                        out.write("\r\n");
                        out.write("    ");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f2 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f2 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f2
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f2
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f2);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f2);
                            out.write("\r\n");
                            out.write("\t    ");
                        }
                        out.write("\r\n");
                        out.write("    ");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f1 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f1.setParent(null);
                        _jspx_th_html_005ferrors_005f1.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f1 = _jspx_th_html_005ferrors_005f1.doStartTag();
                        if (_jspx_th_html_005ferrors_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f1);
                        out.write("\r\n");
                        out.write("  </div>\r\n");
                        out.write("\r\n");
                        out.write("\r\n");
                        out.write("<script type=\"text/javascript\">\r\n");
                        out.write("    Calendar.setup({\r\n");
                        out.write("        inputField     :    \"");
                        out.print(formFieldName);
                        out.write("\",     // id of the input field\r\n");
                        out.write("        button         :    \"f_");
                        out.print(formFieldName);
                        out.write("\",  // trigger for the calendar (button ID)\r\n");
                        out.write(
                                "        align          :    \"Tl\",           // alignment (defaults to \"Bl\")\r\n");
                        out.write("\t\t\t\tifFormat    : \"");
                        out.print(fieldDateFormat);
                        out.write("\",\r\n");
                        out.write("\t\t\t\tdaFormat : \"");
                        out.print(fieldDateFormat);
                        out.write("\",\r\n");
                        out.write("\t\t\t\tshowsTime :true,\r\n");
                        out.write("        singleClick    :    true,\r\n");
                        out.write("        firstDay : \"1\"\r\n");
                        out.write("    });\r\n");
                        out.write("</script>\r\n");
                        out.write("<noscript></noscript>\r\n");
                        out.write("\r\n");
                        out.write("\r\n");
                        out.write("\t");
                    }
                }

            }

        } catch (Exception e) {
            e.printStackTrace();
        }
        out.write('\r');
        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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.forms.struts_005fdiv_005fselect_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;//w  ww .  jav a  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;

        /**
         * 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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        try {
            String namespace = ((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace();

            String formFieldName;
            String formFieldKey;
            boolean required;
            String formFieldType;
            String value = null;
            String fieldDateFormat = "";
            boolean hidden;
            boolean readonly;
            String collectionName;
            String collectionAttrName;
            String collectionProperty;
            String collectionLabel;
            String[] optionValues;
            String[] optionNames;
            String[] optionHasChildren;
            int field_size;
            int textAreaCols;
            int textAreaRows;
            int popupWidth;
            int popupHeight;
            String helpMessage = null;
            com.ext.sql.StrutsFormFields form_field;

            boolean textAreaHtmlFlag = false;
            String onChange = "";
            String lookupAction = "";
            boolean previous_fieldset = false;
            boolean secretField = false;

            form_field = (com.ext.sql.StrutsFormFields) request.getAttribute(namespace + "_STRUTS_DIV_FIELD");
            String curFormName = (String) request.getAttribute(namespace + "_STRUTS_DIV_curFormName");

            formFieldName = form_field.getFormFieldName();
            formFieldKey = form_field.getFormFieldKey();
            formFieldType = form_field.getFormFieldType();
            fieldDateFormat = form_field.getDateFormat();
            if (fieldDateFormat == null || fieldDateFormat.equals(""))
                fieldDateFormat = CommonDefs.DATE_FORMAT_JSCRIPT;
            hidden = form_field.isHidden();
            readonly = form_field.isReadonly();
            required = form_field.isRequired();
            collectionName = form_field.getCollectionName();
            collectionAttrName = form_field.getCollectionAttrName();
            collectionProperty = form_field.getCollectionProperty();
            collectionLabel = form_field.getCollectionLabel();
            field_size = form_field.getField_size();
            textAreaCols = form_field.getTextAreaCols();
            textAreaRows = form_field.getTextAreaRows();
            popupWidth = form_field.getPopupWidth();
            popupHeight = form_field.getPopupHeight();
            secretField = form_field.isSecretTextField();
            helpMessage = form_field.getHelpMessage();
            String colour = null;
            String bgcolour = null;
            value = form_field.getValue();
            if (Validator.isNull(value) && Validator.isNotNull(request.getParameter(formFieldName)))
                value = request.getParameter(formFieldName);
            colour = form_field.getColour();
            bgcolour = colour;
            if (colour != null && colour.equals("inherit"))
                bgcolour = null;
            // force span colour to always be the default
            colour = "inherit";
            optionNames = form_field.getOptionLabels();
            optionValues = form_field.getOptionValues();
            optionHasChildren = form_field.getOptionHasChildren();

            if (formFieldType.equals("select")) {

                if (form_field.isDynamicField()) {

                    out.write("\r\n");
                    out.write("\t <script type=\"text/javascript\">\r\n");
                    out.write("\t\t     \tfunction ");
                    out.print(formFieldName);
                    out.write("_selectLeafOnlyOptions(selectEl) {\r\n");
                    out.write("\t\t     \t\tvar showAlert = false;\r\n");
                    out.write("\t\t\t     \tif (selectEl != null) {\r\n");
                    out.write("\t\t\t     \t\tvar isMultySelect = selectEl.multiple;\r\n");
                    out.write("\t\t\t     \t\tvar selInd = selectEl.selectedIndex;\r\n");
                    out.write("\t\t\t     \t\tif (isMultySelect){\r\n");
                    out.write("\t\t\t     \t\t\tfor (var i = 0; i < selectEl.options.length; i++){\r\n");
                    out.write("\t\t\t     \t\t\t\tvar optEl = selectEl.options[i];\r\n");
                    out.write("\r\n");
                    out.write(
                            "\t\t\t     \t\t\t\tif (optEl.selected && optEl.attributes.optHasChildren.value == 'true') {\r\n");
                    out.write("\t\t\t\t     \t\t\t\tshowAlert = true;\r\n");
                    out.write("\t\t\t\t     \t\t\t\toptEl.selected = false;\r\n");
                    out.write("\t\t\t\t     \t\t\t\tbreak;\r\n");
                    out.write("\t\t\t     \t\t\t\t}\r\n");
                    out.write("\t\t\t     \t\t\t}\r\n");
                    out.write("\t\t\t     \t\t}else{\r\n");
                    out.write(
                            "\t\t\t\t\t\t\tif (selectEl.options[selInd].attributes.optHasChildren.value == 'true'){\r\n");
                    out.write("\t\t\t\t\t\t\t\tshowAlert = true;\r\n");
                    out.write("\t\t\t\t\t\t\t\tselectEl.options[selInd].selected = false;\r\n");
                    out.write("\t\t\t\t\t\t\t}\r\n");
                    out.write("\t\t\t\t\t\t}\r\n");
                    out.write("\t\t\t\t\t}\r\n");
                    out.write("\t\t\t\t\tif (showAlert) {\r\n");
                    out.write("\t\t\t\t\t\t");
                    {
                        String tmpAlertLabel = LanguageUtil.get(pageContext,
                                "metadata.fields.select.alertMessage.select_only_leaf_options");
                        out.write("\r\n");
                        out.write("\t\t\t\t\t\talert('");
                        out.print(tmpAlertLabel);
                        out.write("');\r\n");
                        out.write("\t\t\t\t\t\t");
                    }
                    out.write("\r\n");
                    out.write("\t\t\t\t\t}\r\n");
                    out.write("\t\t\t\t}\r\n");
                    out.write("\t     \t</script><noscript></noscript>\r\n");
                    out.write("\t ");

                    String extraStyle = "";
                    value = (value == null) ? "" : value;
                    String[] valuesArr = value.split(",");
                    boolean isMultySelect = (form_field.getMultipleSelection() > 0);
                    boolean selectOnlyLeaves = form_field.isSelectOnlyLeaves();

                    if (valuesArr != null)
                        java.util.Arrays.sort(valuesArr);

                    if (bgcolour != null) {
                        extraStyle += "background-color: " + bgcolour + ";";
                    }
                    onChange = (onChange == null) ? "" : onChange;
                    if (selectOnlyLeaves) {
                        onChange = formFieldName + "_selectLeafOnlyOptions(this);" + onChange;
                    }
                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t<input type=\"hidden\" id=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\">\r\n");
                        out.write("     \t\t");

                    } else {
                        out.write("\r\n");
                        out.write("\t \t\t\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t<label style=\"color:");
                        out.print(colour);
                        out.write("\" for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t     \t");
                        if (isMultySelect) {
                            out.write("\r\n");
                            out.write("\t     \t");
                            out.print(form_field.getLabelForMultipleSelection());
                            out.write("<BR>\r\n");
                            out.write("\t     \t");
                        }
                        if (readonly) {
                            out.write("\r\n");
                            out.write("\t     \t<input type=\"hidden\" id=\"");
                            out.print(formFieldName);
                            out.write("\" name=\"");
                            out.print(formFieldName);
                            out.write("\" value=\"");
                            out.print((value != null ? value : ""));
                            out.write("\">\r\n");
                            out.write("\t     \t\r\n");
                            out.write("\t     \t\r\n");
                            out.write("     \t");
                            if (optionNames != null && optionValues != null && !isMultySelect) {
                                String selectedValues = "";
                                for (int k = 0; k < optionValues.length; k++) {
                                    if (value != null && value.equals(optionValues[k])) {
                                        selectedValues = LanguageUtil.get(pageContext, optionNames[k]);
                                    }
                                }

                                out.write("\r\n");
                                out.write("\t     \t  ");
                                out.print(selectedValues);
                                out.write("\r\n");
                                out.write("\t     \t");
                            }
                            out.write("\r\n");
                            out.write("\t     \t");
                        } else {
                            if (isMultySelect) {
                                out.write("\r\n");
                                out.write("\t     \t\t<select style=\"");
                                out.print(extraStyle);
                                out.write("\" name=\"");
                                out.print(formFieldName);
                                out.write("\" onChange=\"");
                                out.print(onChange);
                                out.write("\" size=\"");
                                out.print(String.valueOf(form_field.getMultipleSelection()));
                                out.write("\" multiple=\"true\" >\r\n");
                                out.write("\t     \t");
                            } else {
                                out.write("\r\n");
                                out.write("\t     \t<select style=\"");
                                out.print(extraStyle);
                                out.write("\" name=\"");
                                out.print(formFieldName);
                                out.write("\" onChange=\"");
                                out.print(onChange);
                                out.write("\" >\r\n");
                                out.write("\t     \t");
                            }
                        }
                        out.write("\r\n");
                        out.write("\t     \t\r\n");
                        out.write("\t     \t\r\n");
                        out.write("\t     \t\r\n");
                        out.write("\t     \t");
                        if (!readonly) {
                            out.write("\r\n");
                            out.write("\t     \t");
                            if (optionNames != null && optionValues != null && (!readonly || !isMultySelect)) {
                                for (int k = 0; k < optionValues.length; k++) {
                                    boolean selected = false;
                                    String optHasChildren = (optionHasChildren != null
                                            && optionHasChildren.length > k) ? optionHasChildren[k] : "false";
                                    if (value != null) {
                                        if (isMultySelect && valuesArr != null) {
                                            selected = (java.util.Arrays.binarySearch(valuesArr,
                                                    optionValues[k]) >= 0);
                                        } else {
                                            selected = value.equals(optionValues[k]);
                                        }
                                    }

                                    out.write("\r\n");
                                    out.write("\t     \t\t\t<option ");
                                    if (bgcolour != null) {
                                        out.write(" style=\"background-color:");
                                        out.print(bgcolour);
                                        out.write('"');
                                        out.write(' ');
                                    }
                                    out.write(" value=\"");
                                    out.print(optionValues[k]);
                                    out.write('"');
                                    out.write(' ');
                                    out.write(' ');
                                    if (selected) {
                                        out.write(" selected=\"selected\" ");
                                    }
                                    out.write(" optHasChildren=\"");
                                    out.print(optHasChildren);
                                    out.write('"');
                                    out.write('>');
                                    out.print(LanguageUtil.get(pageContext, optionNames[k]));
                                    out.write("</option>\r\n");
                                    out.write("\t\t\t\t");
                                }
                                out.write("\r\n");
                                out.write("\t\t\t");
                            }
                            out.write("\r\n");
                            out.write("\t     \t</select>\r\n");
                            out.write("\t     \t");
                        }
                        out.write("\r\n");
                        out.write("\t     \t\r\n");
                        out.write("\t     \t");
                        if (!readonly && required) {
                            out.write("<em>*</em>");
                        }
                        out.write("\r\n");
                        out.write("\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f0 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f0 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                            out.write("\r\n");
                            out.write("\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("        ");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f0 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f0.setParent(null);
                        _jspx_th_html_005ferrors_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f0 = _jspx_th_html_005ferrors_005f0.doStartTag();
                        if (_jspx_th_html_005ferrors_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f0);
                        out.write("\r\n");
                        out.write("      </div>\r\n");
                        out.write("\r\n");
                        out.write("\t ");
                    } // end if hidden

                } else {

                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t");
                        //  html:hidden
                        org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f0 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.HiddenTag.class);
                        _jspx_th_html_005fhidden_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005fhidden_005f0.setParent(null);
                        _jspx_th_html_005fhidden_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005fhidden_005f0 = _jspx_th_html_005fhidden_005f0.doStartTag();
                        if (_jspx_th_html_005fhidden_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005fhidden_005f0);
                        out.write("\r\n");
                        out.write("     \t\t");

                    } else {
                        onChange = (form_field.getOnChange() != null) ? form_field.getOnChange() : "";

                        out.write("\r\n");
                        out.write("\t \t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t     \t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t     \t   \r\n");
                        out.write("\t     \t");
                        if (form_field.getMultipleSelection() > 0) {
                            out.write("\r\n");
                            out.write("\t\t\t");
                            //  html:select
                            org.apache.struts.taglib.html.SelectTag _jspx_th_html_005fselect_005f0 = (org.apache.struts.taglib.html.SelectTag) _005fjspx_005ftagPool_005fhtml_005fselect_005fsize_005fproperty_005fonchange_005fmultiple_005fdisabled_005falt
                                    .get(org.apache.struts.taglib.html.SelectTag.class);
                            _jspx_th_html_005fselect_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_html_005fselect_005f0.setParent(null);
                            _jspx_th_html_005fselect_005f0.setAlt(LanguageUtil.get(pageContext, formFieldKey));
                            _jspx_th_html_005fselect_005f0.setProperty(formFieldName);
                            _jspx_th_html_005fselect_005f0.setOnchange(onChange);
                            _jspx_th_html_005fselect_005f0.setDisabled(readonly);
                            _jspx_th_html_005fselect_005f0
                                    .setSize(String.valueOf(form_field.getMultipleSelection()));
                            _jspx_th_html_005fselect_005f0.setMultiple("true");
                            int _jspx_eval_html_005fselect_005f0 = _jspx_th_html_005fselect_005f0.doStartTag();
                            if (_jspx_eval_html_005fselect_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                if (_jspx_eval_html_005fselect_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                    out = _jspx_page_context.pushBody();
                                    _jspx_th_html_005fselect_005f0
                                            .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                    _jspx_th_html_005fselect_005f0.doInitBody();
                                }
                                do {
                                    out.write("\r\n");
                                    out.write("\t     \t");
                                    if (collectionName != null) {
                                        out.write("\r\n");
                                        out.write("\t     \t    ");
                                        //  html:optionsCollection
                                        org.apache.struts.taglib.html.OptionsCollectionTag _jspx_th_html_005foptionsCollection_005f0 = (org.apache.struts.taglib.html.OptionsCollectionTag) _005fjspx_005ftagPool_005fhtml_005foptionsCollection_005fvalue_005fstyleClass_005fproperty_005fname_005flabel_005fnobody
                                                .get(org.apache.struts.taglib.html.OptionsCollectionTag.class);
                                        _jspx_th_html_005foptionsCollection_005f0
                                                .setPageContext(_jspx_page_context);
                                        _jspx_th_html_005foptionsCollection_005f0.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_html_005fselect_005f0);
                                        _jspx_th_html_005foptionsCollection_005f0.setStyleClass("form-text");
                                        _jspx_th_html_005foptionsCollection_005f0.setName(curFormName);
                                        _jspx_th_html_005foptionsCollection_005f0.setProperty(collectionName);
                                        _jspx_th_html_005foptionsCollection_005f0.setLabel(collectionLabel);
                                        _jspx_th_html_005foptionsCollection_005f0.setValue(collectionProperty);
                                        int _jspx_eval_html_005foptionsCollection_005f0 = _jspx_th_html_005foptionsCollection_005f0
                                                .doStartTag();
                                        if (_jspx_th_html_005foptionsCollection_005f0
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fhtml_005foptionsCollection_005fvalue_005fstyleClass_005fproperty_005fname_005flabel_005fnobody
                                                    .reuse(_jspx_th_html_005foptionsCollection_005f0);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fhtml_005foptionsCollection_005fvalue_005fstyleClass_005fproperty_005fname_005flabel_005fnobody
                                                .reuse(_jspx_th_html_005foptionsCollection_005f0);
                                        out.write("\r\n");
                                        out.write("\t     \t");
                                    } else if (collectionAttrName != null) {
                                        out.write("\r\n");
                                        out.write("\t     \t");
                                        //  html:options
                                        org.apache.struts.taglib.html.OptionsTag _jspx_th_html_005foptions_005f0 = (org.apache.struts.taglib.html.OptionsTag) _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fcollection_005fnobody
                                                .get(org.apache.struts.taglib.html.OptionsTag.class);
                                        _jspx_th_html_005foptions_005f0.setPageContext(_jspx_page_context);
                                        _jspx_th_html_005foptions_005f0.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_html_005fselect_005f0);
                                        _jspx_th_html_005foptions_005f0.setCollection(collectionAttrName);
                                        _jspx_th_html_005foptions_005f0.setProperty(collectionProperty);
                                        _jspx_th_html_005foptions_005f0.setLabelProperty(collectionLabel);
                                        _jspx_th_html_005foptions_005f0.setStyleClass("form-text");
                                        int _jspx_eval_html_005foptions_005f0 = _jspx_th_html_005foptions_005f0
                                                .doStartTag();
                                        if (_jspx_th_html_005foptions_005f0
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fcollection_005fnobody
                                                    .reuse(_jspx_th_html_005foptions_005f0);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fcollection_005fnobody
                                                .reuse(_jspx_th_html_005foptions_005f0);
                                        out.write("\r\n");
                                        out.write("\t\t\t");
                                    } else if (collectionProperty != null) {
                                        out.write("\r\n");
                                        out.write("\t\t     \t");
                                        //  html:options
                                        org.apache.struts.taglib.html.OptionsTag _jspx_th_html_005foptions_005f1 = (org.apache.struts.taglib.html.OptionsTag) _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fnobody
                                                .get(org.apache.struts.taglib.html.OptionsTag.class);
                                        _jspx_th_html_005foptions_005f1.setPageContext(_jspx_page_context);
                                        _jspx_th_html_005foptions_005f1.setParent(
                                                (javax.servlet.jsp.tagext.Tag) _jspx_th_html_005fselect_005f0);
                                        _jspx_th_html_005foptions_005f1.setProperty(collectionProperty);
                                        _jspx_th_html_005foptions_005f1.setLabelProperty(collectionLabel);
                                        _jspx_th_html_005foptions_005f1.setStyleClass("form-text");
                                        int _jspx_eval_html_005foptions_005f1 = _jspx_th_html_005foptions_005f1
                                                .doStartTag();
                                        if (_jspx_th_html_005foptions_005f1
                                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                            _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fnobody
                                                    .reuse(_jspx_th_html_005foptions_005f1);
                                            return;
                                        }
                                        _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fnobody
                                                .reuse(_jspx_th_html_005foptions_005f1);
                                        out.write("\r\n");
                                        out.write("\t\t\t");
                                    }
                                    out.write("\r\n");
                                    out.write("\t     \t");
                                    int evalDoAfterBody = _jspx_th_html_005fselect_005f0.doAfterBody();
                                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                        break;
                                } while (true);
                                if (_jspx_eval_html_005fselect_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                    out = _jspx_page_context.popBody();
                                }
                            }
                            if (_jspx_th_html_005fselect_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fhtml_005fselect_005fsize_005fproperty_005fonchange_005fmultiple_005fdisabled_005falt
                                        .reuse(_jspx_th_html_005fselect_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fhtml_005fselect_005fsize_005fproperty_005fonchange_005fmultiple_005fdisabled_005falt
                                    .reuse(_jspx_th_html_005fselect_005f0);
                            out.write("\r\n");
                            out.write("\t     \t\r\n");
                            out.write("\t     \t");
                        } else {
                            out.write("\r\n");
                            out.write("\t     \t");
                            if (collectionName != null || collectionAttrName != null || !readonly) {
                                out.write("\r\n");
                                out.write("\t     \t");
                                //  html:select
                                org.apache.struts.taglib.html.SelectTag _jspx_th_html_005fselect_005f1 = (org.apache.struts.taglib.html.SelectTag) _005fjspx_005ftagPool_005fhtml_005fselect_005fproperty_005fonchange_005fdisabled_005falt
                                        .get(org.apache.struts.taglib.html.SelectTag.class);
                                _jspx_th_html_005fselect_005f1.setPageContext(_jspx_page_context);
                                _jspx_th_html_005fselect_005f1.setParent(null);
                                _jspx_th_html_005fselect_005f1
                                        .setAlt(LanguageUtil.get(pageContext, formFieldKey));
                                _jspx_th_html_005fselect_005f1.setProperty(formFieldName);
                                _jspx_th_html_005fselect_005f1.setOnchange(onChange);
                                _jspx_th_html_005fselect_005f1.setDisabled(readonly);
                                int _jspx_eval_html_005fselect_005f1 = _jspx_th_html_005fselect_005f1
                                        .doStartTag();
                                if (_jspx_eval_html_005fselect_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                    if (_jspx_eval_html_005fselect_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                        out = _jspx_page_context.pushBody();
                                        _jspx_th_html_005fselect_005f1
                                                .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                        _jspx_th_html_005fselect_005f1.doInitBody();
                                    }
                                    do {
                                        out.write("\r\n");
                                        out.write("\t\t     \t");
                                        if (collectionName != null) {
                                            out.write("\r\n");
                                            out.write("\t\t     \t    ");
                                            //  html:optionsCollection
                                            org.apache.struts.taglib.html.OptionsCollectionTag _jspx_th_html_005foptionsCollection_005f1 = (org.apache.struts.taglib.html.OptionsCollectionTag) _005fjspx_005ftagPool_005fhtml_005foptionsCollection_005fvalue_005fstyleClass_005fproperty_005fname_005flabel_005fnobody
                                                    .get(org.apache.struts.taglib.html.OptionsCollectionTag.class);
                                            _jspx_th_html_005foptionsCollection_005f1
                                                    .setPageContext(_jspx_page_context);
                                            _jspx_th_html_005foptionsCollection_005f1.setParent(
                                                    (javax.servlet.jsp.tagext.Tag) _jspx_th_html_005fselect_005f1);
                                            _jspx_th_html_005foptionsCollection_005f1
                                                    .setStyleClass("form-text");
                                            _jspx_th_html_005foptionsCollection_005f1.setName(curFormName);
                                            _jspx_th_html_005foptionsCollection_005f1
                                                    .setProperty(collectionName);
                                            _jspx_th_html_005foptionsCollection_005f1.setLabel(collectionLabel);
                                            _jspx_th_html_005foptionsCollection_005f1
                                                    .setValue(collectionProperty);
                                            int _jspx_eval_html_005foptionsCollection_005f1 = _jspx_th_html_005foptionsCollection_005f1
                                                    .doStartTag();
                                            if (_jspx_th_html_005foptionsCollection_005f1
                                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                _005fjspx_005ftagPool_005fhtml_005foptionsCollection_005fvalue_005fstyleClass_005fproperty_005fname_005flabel_005fnobody
                                                        .reuse(_jspx_th_html_005foptionsCollection_005f1);
                                                return;
                                            }
                                            _005fjspx_005ftagPool_005fhtml_005foptionsCollection_005fvalue_005fstyleClass_005fproperty_005fname_005flabel_005fnobody
                                                    .reuse(_jspx_th_html_005foptionsCollection_005f1);
                                            out.write("\r\n");
                                            out.write("\t\t     \t\r\n");
                                            out.write("\t\t     \t");
                                        } else if (collectionAttrName != null) {
                                            out.write("\r\n");
                                            out.write("\t\t     \t");
                                            //  html:options
                                            org.apache.struts.taglib.html.OptionsTag _jspx_th_html_005foptions_005f2 = (org.apache.struts.taglib.html.OptionsTag) _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fcollection_005fnobody
                                                    .get(org.apache.struts.taglib.html.OptionsTag.class);
                                            _jspx_th_html_005foptions_005f2.setPageContext(_jspx_page_context);
                                            _jspx_th_html_005foptions_005f2.setParent(
                                                    (javax.servlet.jsp.tagext.Tag) _jspx_th_html_005fselect_005f1);
                                            _jspx_th_html_005foptions_005f2.setCollection(collectionAttrName);
                                            _jspx_th_html_005foptions_005f2.setProperty(collectionProperty);
                                            _jspx_th_html_005foptions_005f2.setLabelProperty(collectionLabel);
                                            _jspx_th_html_005foptions_005f2.setStyleClass("form-text");
                                            int _jspx_eval_html_005foptions_005f2 = _jspx_th_html_005foptions_005f2
                                                    .doStartTag();
                                            if (_jspx_th_html_005foptions_005f2
                                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fcollection_005fnobody
                                                        .reuse(_jspx_th_html_005foptions_005f2);
                                                return;
                                            }
                                            _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fcollection_005fnobody
                                                    .reuse(_jspx_th_html_005foptions_005f2);
                                            out.write("\r\n");
                                            out.write("\t\t\t\t\r\n");
                                            out.write("\t\t\t\t");
                                        } else if (collectionProperty != null) {
                                            out.write("\r\n");
                                            out.write("\t\t\t     \t");
                                            //  html:options
                                            org.apache.struts.taglib.html.OptionsTag _jspx_th_html_005foptions_005f3 = (org.apache.struts.taglib.html.OptionsTag) _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fnobody
                                                    .get(org.apache.struts.taglib.html.OptionsTag.class);
                                            _jspx_th_html_005foptions_005f3.setPageContext(_jspx_page_context);
                                            _jspx_th_html_005foptions_005f3.setParent(
                                                    (javax.servlet.jsp.tagext.Tag) _jspx_th_html_005fselect_005f1);
                                            _jspx_th_html_005foptions_005f3.setProperty(collectionProperty);
                                            _jspx_th_html_005foptions_005f3.setLabelProperty(collectionLabel);
                                            _jspx_th_html_005foptions_005f3.setStyleClass("form-text");
                                            int _jspx_eval_html_005foptions_005f3 = _jspx_th_html_005foptions_005f3
                                                    .doStartTag();
                                            if (_jspx_th_html_005foptions_005f3
                                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                                _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fnobody
                                                        .reuse(_jspx_th_html_005foptions_005f3);
                                                return;
                                            }
                                            _005fjspx_005ftagPool_005fhtml_005foptions_005fstyleClass_005fproperty_005flabelProperty_005fnobody
                                                    .reuse(_jspx_th_html_005foptions_005f3);
                                            out.write("\r\n");
                                            out.write("\t\t\t\t");
                                        }
                                        out.write("\r\n");
                                        out.write("\t\t     \t\r\n");
                                        out.write("\t\t     \t");
                                        int evalDoAfterBody = _jspx_th_html_005fselect_005f1.doAfterBody();
                                        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                            break;
                                    } while (true);
                                    if (_jspx_eval_html_005fselect_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                        out = _jspx_page_context.popBody();
                                    }
                                }
                                if (_jspx_th_html_005fselect_005f1
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005fhtml_005fselect_005fproperty_005fonchange_005fdisabled_005falt
                                            .reuse(_jspx_th_html_005fselect_005f1);
                                    return;
                                }
                                _005fjspx_005ftagPool_005fhtml_005fselect_005fproperty_005fonchange_005fdisabled_005falt
                                        .reuse(_jspx_th_html_005fselect_005f1);
                                out.write("\r\n");
                                out.write("\t     \t\r\n");
                                out.write("\t     \t");
                            } else { // readonly case for collectionProperty 
                                try {
                                    out.write("\r\n");
                                    out.write("\t\t\t     \t");
                                    //  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(null);
                                    _jspx_th_bean_005fdefine_005f0.setId("select_values");
                                    _jspx_th_bean_005fdefine_005f0.setName(curFormName);
                                    _jspx_th_bean_005fdefine_005f0.setProperty(collectionProperty);
                                    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 select_values = null;
                                    select_values = (java.lang.Object) _jspx_page_context
                                            .findAttribute("select_values");
                                    out.write("\r\n");
                                    out.write("\t\t\t     \t");
                                    //  bean:define
                                    org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_005fdefine_005f1 = (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_005f1.setPageContext(_jspx_page_context);
                                    _jspx_th_bean_005fdefine_005f1.setParent(null);
                                    _jspx_th_bean_005fdefine_005f1.setId("select_labels");
                                    _jspx_th_bean_005fdefine_005f1.setName(curFormName);
                                    _jspx_th_bean_005fdefine_005f1.setProperty(collectionLabel);
                                    int _jspx_eval_bean_005fdefine_005f1 = _jspx_th_bean_005fdefine_005f1
                                            .doStartTag();
                                    if (_jspx_th_bean_005fdefine_005f1
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody
                                                .reuse(_jspx_th_bean_005fdefine_005f1);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody
                                            .reuse(_jspx_th_bean_005fdefine_005f1);
                                    java.lang.Object select_labels = null;
                                    select_labels = (java.lang.Object) _jspx_page_context
                                            .findAttribute("select_labels");
                                    out.write("\r\n");
                                    out.write("\t\t\t     \t");
                                    //  bean:define
                                    org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_005fdefine_005f2 = (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_005f2.setPageContext(_jspx_page_context);
                                    _jspx_th_bean_005fdefine_005f2.setParent(null);
                                    _jspx_th_bean_005fdefine_005f2.setId("select_id");
                                    _jspx_th_bean_005fdefine_005f2.setName(curFormName);
                                    _jspx_th_bean_005fdefine_005f2.setProperty(formFieldName);
                                    int _jspx_eval_bean_005fdefine_005f2 = _jspx_th_bean_005fdefine_005f2
                                            .doStartTag();
                                    if (_jspx_th_bean_005fdefine_005f2
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody
                                                .reuse(_jspx_th_bean_005fdefine_005f2);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fbean_005fdefine_005fproperty_005fname_005fid_005fnobody
                                            .reuse(_jspx_th_bean_005fdefine_005f2);
                                    java.lang.Object select_id = null;
                                    select_id = (java.lang.Object) _jspx_page_context
                                            .findAttribute("select_id");
                                    out.write("\r\n");
                                    out.write("\t\t\t     \t");

                                    if (Validator.isNotNull(select_values) && Validator.isNotNull(select_labels)
                                            && Validator.isNotNull(select_id)) {
                                        String[] selectValues = (String[]) select_values;
                                        String[] selectLabels = (String[]) select_labels;
                                        String selectId = select_id != null ? select_id.toString() : "";
                                        if (selectValues != null && selectValues.length > 0
                                                && Validator.isNotNull(selectId)) {
                                            List<String> selectList = Arrays.asList(selectValues);
                                            int valueIndex = selectList.indexOf(selectId);
                                            if (valueIndex >= 0 && valueIndex < selectLabels.length) {
                                                String selectedValue = selectLabels[valueIndex];

                                                out.write("\r\n");
                                                out.write("\t\t\t\t     \t\t\t");
                                                out.print((selectedValue != null ? selectedValue : " - "));
                                                out.write("\r\n");
                                                out.write("\t\t\t\t     \t\t\t");

                                            } else {
                                                out.print(" - ");
                                            }
                                        } else {
                                            out.print(" - ");
                                        }
                                    } else {
                                        out.print(" - ");
                                    }
                                } catch (Exception e) {
                                    out.print(" - ");
                                }

                                out.write("\r\n");
                                out.write("\t     \t\t");
                            }
                            out.write("\r\n");
                            out.write("\t     \t");
                        }
                        out.write("\r\n");
                        out.write("\t     \t\r\n");
                        out.write("\t     \t");
                        if (readonly) {
                            out.write("\r\n");
                            out.write("\t     \t\t");
                            //  html:hidden
                            org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f1 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .get(org.apache.struts.taglib.html.HiddenTag.class);
                            _jspx_th_html_005fhidden_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_html_005fhidden_005f1.setParent(null);
                            _jspx_th_html_005fhidden_005f1.setProperty(formFieldName);
                            int _jspx_eval_html_005fhidden_005f1 = _jspx_th_html_005fhidden_005f1.doStartTag();
                            if (_jspx_th_html_005fhidden_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                        .reuse(_jspx_th_html_005fhidden_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f1);
                            out.write("\r\n");
                            out.write("\t     \t");
                        }
                        out.write("\r\n");
                        out.write("\t     \t");
                        if (required) {
                            out.write("<em>*</em>");
                        }
                        out.write("\r\n");
                        out.write("\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f1 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f1 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                            out.write("\r\n");
                            out.write("\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("    \t \t");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f1 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f1.setParent(null);
                        _jspx_th_html_005ferrors_005f1.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f1 = _jspx_th_html_005ferrors_005f1.doStartTag();
                        if (_jspx_th_html_005ferrors_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f1);
                        out.write("\r\n");
                        out.write("     </div>\r\n");
                        out.write("\r\n");
                        out.write("\t ");
                    } // end if hidden
                } // end if "select"
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
        out.write('\r');
        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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.forms.struts_005fdiv_005ftab_005ffields_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;/* w  ww  .ja  va 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-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");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f0 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f0.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f0.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f0.setId("tileAttribute");
        _jspx_th_tiles_005fuseAttribute_005f0.setName("attributeName");
        _jspx_th_tiles_005fuseAttribute_005f0.setClassname("java.lang.String");
        _jspx_th_tiles_005fuseAttribute_005f0.setIgnore(true);
        int _jspx_eval_tiles_005fuseAttribute_005f0 = _jspx_th_tiles_005fuseAttribute_005f0.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
        java.lang.String tileAttribute = null;
        tileAttribute = (java.lang.String) _jspx_page_context.findAttribute("tileAttribute");
        out.write('\n');
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f1 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f1.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f1.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f1.setId("curFormNameAttribute");
        _jspx_th_tiles_005fuseAttribute_005f1.setName("formName");
        _jspx_th_tiles_005fuseAttribute_005f1.setClassname("java.lang.String");
        int _jspx_eval_tiles_005fuseAttribute_005f1 = _jspx_th_tiles_005fuseAttribute_005f1.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f1);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f1);
        java.lang.String curFormNameAttribute = null;
        curFormNameAttribute = (java.lang.String) _jspx_page_context.findAttribute("curFormNameAttribute");
        out.write('\n');
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f2 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f2.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f2.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f2.setId("tabNames");
        _jspx_th_tiles_005fuseAttribute_005f2.setName("tabNames");
        _jspx_th_tiles_005fuseAttribute_005f2.setClassname("java.lang.String");
        _jspx_th_tiles_005fuseAttribute_005f2.setIgnore(true);
        int _jspx_eval_tiles_005fuseAttribute_005f2 = _jspx_th_tiles_005fuseAttribute_005f2.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f2);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f2);
        java.lang.String tabNames = null;
        tabNames = (java.lang.String) _jspx_page_context.findAttribute("tabNames");
        out.write("\n");
        out.write("\t\n");
        out.write("\n");
        try {
            String namespace = ((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace();
            String JS_PREFIX = (tileAttribute != null ? tileAttribute : "");
            request.setAttribute(namespace + "_STRUTS_DIV_JS_PREFIX", JS_PREFIX);

            out.write("\n");
            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 curFormName = curFormNameAttribute;
            request.setAttribute(namespace + "_STRUTS_DIV_curFormName", curFormName);

            Vector _struts_fields = null;
            if (tileAttribute != null)
                _struts_fields = (Vector) request.getAttribute(tileAttribute);
            else {
                _struts_fields = (Vector) request.getAttribute(namespace + CommonDefs.ATTR_FORM_FIELDS);
                if (_struts_fields == null) {
                    _struts_fields = (Vector) request.getAttribute(CommonDefs.ATTR_FORM_FIELDS);
                }
                if (_struts_fields == null)
                    _struts_fields = new Vector();
            }

            String onSubmitBody = "";
            String formFieldName;
            String formFieldKey;
            boolean required;
            String formFieldType;
            String value = null;
            String fieldDateFormat = "";
            boolean hidden;
            boolean readonly;
            String collectionName;
            String collectionAttrName;
            String collectionProperty;
            String collectionLabel;
            int field_size;
            int textAreaCols;
            int textAreaRows;
            int popupWidth;
            int popupHeight;
            String helpMessage = null;
            com.ext.sql.StrutsFormFields form_field;

            boolean textAreaHtmlFlag = false;
            String onChange = "";
            String lookupAction = "";
            boolean secretField = false;

            boolean previous_fieldset = false;

            out.write("\n");
            out.write("<script type=\"text/javascript\">\n");
            out.write("var ");
            out.print(JS_PREFIX);
            out.write("_fck_fields = '';\n");
            out.write("\n");
            out.write("function ");
            out.print(JS_PREFIX);
            out.write("_fck_updateHiddenText() {\n");
            out.write("    if (");
            out.print(JS_PREFIX);
            out.write("_fck_fields)\n");
            out.write("    {\n");
            out.write("\teval( ");
            out.print(JS_PREFIX);
            out.write("_fck_fields );\n");
            out.write("    }\n");
            out.write("}\n");
            out.write("</script>\n");
            out.write("<noscript></noscript>\n");
            out.write("\n");
            out.write("<div class=\"inline-labels\">\n");
            out.write("\t\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_005frefresh_005fparam_005fnames
                    .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(tabNames);
            _jspx_th_liferay_002dui_005ftabs_005f0.setParam("tab");
            _jspx_th_liferay_002dui_005ftabs_005f0.setRefresh(false);
            int _jspx_eval_liferay_002dui_005ftabs_005f0 = _jspx_th_liferay_002dui_005ftabs_005f0.doStartTag();
            if (_jspx_eval_liferay_002dui_005ftabs_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                if (_jspx_eval_liferay_002dui_005ftabs_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.pushBody();
                    _jspx_th_liferay_002dui_005ftabs_005f0
                            .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                    _jspx_th_liferay_002dui_005ftabs_005f0.doInitBody();
                }
                do {
                    out.write('\n');
                    out.write(' ');

                    String name = tabNames.substring(0, tabNames.indexOf(","));

                    out.write("\n");
                    out.write("\t<div id=\"");
                    out.print(namespace + "tab" + name);
                    out.write("TabsSection\" style=\"display: none;\">\n");

                    for (int index = 0; _struts_fields != null && index < _struts_fields.size(); index++) {
                        form_field = (StrutsFormFields) _struts_fields.get(index);

                        if (form_field instanceof StrutsFormFieldsTabDelimiter) {
                            if (index > 0) {

                                out.write("\n");
                                out.write("\t\t\t </div>\n");
                                out.write("\t\t");

                                String _name = ((StrutsFormFieldsTabDelimiter) form_field).getTabNameKey();
                                previous_fieldset = false;

                                out.write("\n");
                                out.write("\t\t\t\t<div id=\"");
                                out.print(namespace + "tab" + _name);
                                out.write("TabsSection\" style=\"display: none;\">\n");
                                out.write("\t\t\t");
                            }
                        } else if (form_field instanceof StrutsFormFieldsGroupDelimiter) {
                            if (index > 0 && previous_fieldset) {
                                out.write("\n");
                                out.write("\t\t\n");
                                out.write("\t\t\t\t</fieldset>\n");
                                out.write("\n");
                                out.write("\t\t\t\t<fieldset class=\"");
                                out.print(form_field.getColumn() != null ? form_field.getColumn()
                                        : "inline-labels");
                                out.write("\">\n");
                                out.write("\t\t\t\t\t<legend>\n");
                                out.write("\t\t\t\t\t");
                                out.print(LanguageUtil.get(pageContext,
                                        ((StrutsFormFieldsGroupDelimiter) form_field).getGroupNameKey()));
                                out.write("\n");
                                out.write("\t\t\t\t</legend>\n");
                                out.write("\t\t\n");
                                out.write("\t\t\t");
                            } else {
                                out.write("\n");
                                out.write("\t\t\n");
                                out.write("\t\t\t\t<fieldset class=\"");
                                out.print(form_field.getColumn() != null ? form_field.getColumn()
                                        : "inline-labels");
                                out.write("\">\n");
                                out.write("\t\t\t\t\t<legend>\n");
                                out.write("\t\t\t\t\t");
                                out.print(LanguageUtil.get(pageContext,
                                        ((StrutsFormFieldsGroupDelimiter) form_field).getGroupNameKey()));
                                out.write("\n");
                                out.write("\t\t\t\t</legend>\n");
                                out.write("\t\t\n");
                                out.write("\t\t\t");
                            }
                            out.write("\n");
                            out.write("\t\t\t\n");
                            out.write("\t\t\t");
                            previous_fieldset = true;

                        } else {
                            formFieldName = form_field.getFormFieldName();
                            formFieldKey = form_field.getFormFieldKey();
                            formFieldType = form_field.getFormFieldType();
                            fieldDateFormat = form_field.getDateFormat();
                            if (fieldDateFormat == null || fieldDateFormat.equals(""))
                                fieldDateFormat = CommonDefs.DATE_FORMAT_JSCRIPT;
                            hidden = form_field.isHidden();
                            readonly = form_field.isReadonly();
                            required = form_field.isRequired();
                            collectionName = form_field.getCollectionName();
                            collectionAttrName = form_field.getCollectionAttrName();
                            collectionProperty = form_field.getCollectionProperty();
                            collectionLabel = form_field.getCollectionLabel();
                            field_size = form_field.getField_size();
                            textAreaCols = form_field.getTextAreaCols();
                            textAreaRows = form_field.getTextAreaRows();
                            popupWidth = form_field.getPopupWidth();
                            popupHeight = form_field.getPopupHeight();
                            secretField = form_field.isSecretTextField();
                            helpMessage = form_field.getHelpMessage();

                            if (formFieldType.equals("select")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("     \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_select.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("     \t");

                            }

                            else if (formFieldType.equals("text")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("     \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_text.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("     \t");

                            }

                            else if (formFieldType.equals("date")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("     \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_date.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("     \t");

                            }

                            else if (formFieldType.equals("textareahtml_FCK")
                                    || formFieldType.equals("textareahtml")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("     \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_textareahtml.jsp",
                                        out, true);
                                out.write("\n");
                                out.write("     \t");

                            }

                            // Plain text area (no editor)
                            else if (formFieldType.equals("textarea")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_textarea.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("fileupload")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_fileupload.jsp",
                                        out, true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("image")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_image.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("boolean")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_boolean.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("radio")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_radio.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("checkbox")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_checkbox.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("lookup")
                                    && form_field instanceof com.ext.sql.ActionLookupField) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_lookup.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("plain_text")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_plain_text.jsp",
                                        out, true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("link_text")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_link_text.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("browse_topics_many")
                                    || formFieldType.equals("browse_topics_one")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("   \t");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_topics.jsp", out,
                                        true);
                                out.write("\n");
                                out.write("   \t");

                            }

                            else if (formFieldType.equals("tag_lookup")) {
                                request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                                out.write("\n");
                                out.write("    ");
                                org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                        "/html/portlet/ext/struts_includes/forms/struts_div_tag_lookup.jsp",
                                        out, true);
                                out.write("\n");
                                out.write("    ");

                            }

                        }
                        // end big for loop
                    }

                    if (previous_fieldset) {

                        out.write("\n");
                        out.write("</fieldset>\n");
                        out.write("\n");
                    }
                    out.write("\n");
                    out.write("\n");
                    out.write("</div>\n");
                    int evalDoAfterBody = _jspx_th_liferay_002dui_005ftabs_005f0.doAfterBody();
                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                } while (true);
                if (_jspx_eval_liferay_002dui_005ftabs_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.popBody();
                }
            }
            if (_jspx_th_liferay_002dui_005ftabs_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005fliferay_002dui_005ftabs_005frefresh_005fparam_005fnames
                        .reuse(_jspx_th_liferay_002dui_005ftabs_005f0);
                return;
            }
            _005fjspx_005ftagPool_005fliferay_002dui_005ftabs_005frefresh_005fparam_005fnames
                    .reuse(_jspx_th_liferay_002dui_005ftabs_005f0);
            out.write("\n");
            out.write("\n");
            out.write("</div>\n");
            out.write("\n");
        } catch (Exception e) {
            e.printStackTrace();
        }
        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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.forms.struts_005fdiv_005ftag_005flookup_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;/*from  w ww.  j  av 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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        try {
            String namespace = ((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace();

            String formFieldName;
            String formFieldKey;
            boolean required;
            String formFieldType;
            String value = null;
            String fieldDateFormat = "";
            boolean hidden;
            boolean readonly;
            String collectionName;
            String collectionAttrName;
            String collectionProperty;
            String collectionLabel;
            int field_size;
            int textAreaCols;
            int textAreaRows;
            int popupWidth;
            int popupHeight;
            String helpMessage = null;
            com.ext.sql.StrutsFormFields form_field;

            boolean textAreaHtmlFlag = false;
            String onChange = "";
            String lookupAction = "";
            boolean previous_fieldset = false;
            boolean secretField = false;
            String colour = null;
            String bgcolour = null;

            form_field = (com.ext.sql.StrutsFormFields) request.getAttribute(namespace + "_STRUTS_DIV_FIELD");
            String curFormName = (String) request.getAttribute(namespace + "_STRUTS_DIV_curFormName");

            formFieldName = form_field.getFormFieldName();
            formFieldKey = form_field.getFormFieldKey();
            formFieldType = form_field.getFormFieldType();
            fieldDateFormat = form_field.getDateFormat();
            if (fieldDateFormat == null || fieldDateFormat.equals(""))
                fieldDateFormat = CommonDefs.DATE_FORMAT_JSCRIPT;
            hidden = form_field.isHidden();
            readonly = form_field.isReadonly();
            required = form_field.isRequired();
            collectionName = form_field.getCollectionName();
            collectionAttrName = form_field.getCollectionAttrName();
            collectionProperty = form_field.getCollectionProperty();
            collectionLabel = form_field.getCollectionLabel();
            field_size = form_field.getField_size();
            textAreaCols = form_field.getTextAreaCols();
            textAreaRows = form_field.getTextAreaRows();
            popupWidth = form_field.getPopupWidth();
            popupHeight = form_field.getPopupHeight();
            secretField = form_field.isSecretTextField();
            helpMessage = form_field.getHelpMessage();
            value = form_field.getValue();
            colour = form_field.getColour();
            bgcolour = colour;
            if (colour != null && colour.equals("inherit"))
                bgcolour = null;
            // force span colour to always be the default
            colour = "inherit";

            if (formFieldType.equals("tag_lookup")) {
                if (form_field.isDynamicField()) {
                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t<input type=\"hidden\" id=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\">\r\n");
                        out.write("     \t\t");

                    } else {
                        out.write("\r\n");
                        out.write("\t     \t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t     \t");
                        if (readonly) {
                            out.write("\r\n");
                            out.write("        <span style=\"color:");
                            out.print(colour);
                            out.write('"');
                            out.write(' ');
                            out.write('>');
                            out.print((value != null ? value : ""));
                            out.write("</span>\r\n");
                            out.write("\t     \t");
                        } else {
                            out.write("\r\n");
                            out.write("\t     \t\t\t<input name=\"");
                            out.print(formFieldName);
                            out.write("_tagEntries\" id=\"");
                            out.print(formFieldName);
                            out.write("_tagEntries\" type=\"hidden\">\r\n");
                            out.write("            <input ");
                            if (bgcolour != null) {
                                out.write(" style=\"background-color:");
                                out.print(bgcolour);
                                out.write('"');
                                out.write(' ');
                            }
                            out.write("\r\n");
                            out.write("                   id=\"");
                            out.print(formFieldName);
                            out.write("\" type=\"text\" size=\"");
                            out.print("" + field_size);
                            out.write("\" \r\n");
                            out.write("                   name=\"");
                            out.print(formFieldName);
                            out.write("\" value=\"\" autocomplete=\"off\" >\r\n");
                            out.write("            ");
                            if (required) {
                                out.write("<em>*</em>");
                            }
                            out.write("\r\n");
                            out.write("            <span id=\"");
                            out.print(formFieldName);
                            out.write("_tagSummary\"></span>\r\n");
                            out.write("                    \r\n");
                            out.write("            <script type=\"text/javascript\">\r\n");
                            out.write("                  var ");
                            out.print(formFieldName);
                            out.write("_ = null;\r\n");
                            out.write("                  var GN_KMS_MetaTagsSelector_");
                            out.print(formFieldName);
                            out.write("_tagGroup = \"");
                            out.print(form_field.getUploadFilePath());
                            out.write("\";\r\n");
                            out.write("                  jQuery(\r\n");
                            out.write("                  function() {\r\n");
                            out.write("                  ");
                            out.print(formFieldName);
                            out.write("_ = new Liferay.GN_KMS_MetaTagsSelector(\r\n");
                            out.write("                  {\r\n");
                            out.write("                  instanceVar: \"");
                            out.print(formFieldName);
                            out.write("_\",\r\n");
                            out.write("                  hiddenInput: \"");
                            out.print(formFieldName);
                            out.write("_tagEntries\",\r\n");
                            out.write("                  textInput: \"");
                            out.print(formFieldName);
                            out.write("\",\r\n");
                            out.write("                  summarySpan: \"");
                            out.print(formFieldName);
                            out.write("_tagSummary\",\r\n");
                            out.write("                  curTags: \"");
                            out.print((value != null ? value : ""));
                            out.write("\",\r\n");
                            out.write("                  focus: false\r\n");
                            out.write("                  }\r\n");
                            out.write("                  );\r\n");
                            out.write("                  }\r\n");
                            out.write("                  );\r\n");
                            out.write("             </script>\r\n");
                            out.write("\t     \t");
                        }
                        out.write("\r\n");
                        out.write("\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f0 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f0 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                            out.write("\r\n");
                            out.write("\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("    \t ");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f0 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f0.setParent(null);
                        _jspx_th_html_005ferrors_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f0 = _jspx_th_html_005ferrors_005f0.doStartTag();
                        if (_jspx_th_html_005ferrors_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f0);
                        out.write("\r\n");
                        out.write("\t     \t</div>\r\n");
                        out.write("        ");
                    }

                } else {
                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t");
                        //  html:hidden
                        org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f0 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.HiddenTag.class);
                        _jspx_th_html_005fhidden_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005fhidden_005f0.setParent(null);
                        _jspx_th_html_005fhidden_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005fhidden_005f0 = _jspx_th_html_005fhidden_005f0.doStartTag();
                        if (_jspx_th_html_005fhidden_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005fhidden_005f0);
                        out.write("\r\n");
                        out.write("     \t\t");

                    } else {
                        out.write("\r\n");
                        out.write("\t     \t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t     \t");
                        if (readonly) {
                            out.write("\r\n");
                            out.write("        <span style=\"color:");
                            out.print(colour);
                            out.write('"');
                            out.write(' ');
                            out.write('>');
                            //  bean:write
                            org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_005fwrite_005f0 = (org.apache.struts.taglib.bean.WriteTag) _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                    .get(org.apache.struts.taglib.bean.WriteTag.class);
                            _jspx_th_bean_005fwrite_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_bean_005fwrite_005f0.setParent(null);
                            _jspx_th_bean_005fwrite_005f0.setName(curFormName);
                            _jspx_th_bean_005fwrite_005f0.setProperty(formFieldName);
                            int _jspx_eval_bean_005fwrite_005f0 = _jspx_th_bean_005fwrite_005f0.doStartTag();
                            if (_jspx_th_bean_005fwrite_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                        .reuse(_jspx_th_bean_005fwrite_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                    .reuse(_jspx_th_bean_005fwrite_005f0);
                            out.write("</span>\r\n");
                            out.write("\t     \t");
                        } else {
                            out.write("\r\n");
                            out.write("\t     \t\t\t<input name=\"");
                            out.print(formFieldName);
                            out.write("_tagEntries\" id=\"");
                            out.print(formFieldName);
                            out.write("_tagEntries\" type=\"hidden\">\r\n");
                            out.write("            <input id=\"");
                            out.print(formFieldName);
                            out.write("\" type=\"text\" size=\"");
                            out.print("" + field_size);
                            out.write("\" \r\n");
                            out.write("                   name=\"");
                            out.print(formFieldName);
                            out.write("\" value=\"\" autocomplete=\"off\" >\r\n");
                            out.write("            ");
                            if (required) {
                                out.write("<em>*</em>");
                            }
                            out.write("\r\n");
                            out.write("            <span id=\"");
                            out.print(formFieldName);
                            out.write("_tagSummary\"></span>\r\n");
                            out.write("                    \r\n");
                            out.write("            <script type=\"text/javascript\">\r\n");
                            out.write("                  var ");
                            out.print(formFieldName);
                            out.write("_ = null;\r\n");
                            out.write("                  var GN_KMS_MetaTagsLookupSelector_");
                            out.print(formFieldName);
                            out.write("_table = \"");
                            out.print(form_field.getUploadFilePath());
                            out.write("\";\r\n");
                            out.write("                  jQuery(\r\n");
                            out.write("                  function() {\r\n");
                            out.write("                  ");
                            out.print(formFieldName);
                            out.write("_ = new Liferay.GN_KMS_MetaTagsLookupSelector(\r\n");
                            out.write("                  {\r\n");
                            out.write("                  instanceVar: \"");
                            out.print(formFieldName);
                            out.write("_\",\r\n");
                            out.write("                  hiddenInput: \"");
                            out.print(formFieldName);
                            out.write("_tagEntries\",\r\n");
                            out.write("                  textInput: \"");
                            out.print(formFieldName);
                            out.write("\",\r\n");
                            out.write("                  summarySpan: \"");
                            out.print(formFieldName);
                            out.write("_tagSummary\",\r\n");
                            out.write("                  curTags: \"");
                            //  logic:notEmpty
                            org.apache.struts.taglib.logic.NotEmptyTag _jspx_th_logic_005fnotEmpty_005f0 = (org.apache.struts.taglib.logic.NotEmptyTag) _005fjspx_005ftagPool_005flogic_005fnotEmpty_005fproperty_005fname
                                    .get(org.apache.struts.taglib.logic.NotEmptyTag.class);
                            _jspx_th_logic_005fnotEmpty_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_logic_005fnotEmpty_005f0.setParent(null);
                            _jspx_th_logic_005fnotEmpty_005f0.setName(curFormName);
                            _jspx_th_logic_005fnotEmpty_005f0.setProperty(formFieldName);
                            int _jspx_eval_logic_005fnotEmpty_005f0 = _jspx_th_logic_005fnotEmpty_005f0
                                    .doStartTag();
                            if (_jspx_eval_logic_005fnotEmpty_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                do {
                                    //  bean:write
                                    org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_005fwrite_005f1 = (org.apache.struts.taglib.bean.WriteTag) _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                            .get(org.apache.struts.taglib.bean.WriteTag.class);
                                    _jspx_th_bean_005fwrite_005f1.setPageContext(_jspx_page_context);
                                    _jspx_th_bean_005fwrite_005f1.setParent(
                                            (javax.servlet.jsp.tagext.Tag) _jspx_th_logic_005fnotEmpty_005f0);
                                    _jspx_th_bean_005fwrite_005f1.setName(curFormName);
                                    _jspx_th_bean_005fwrite_005f1.setProperty(formFieldName);
                                    int _jspx_eval_bean_005fwrite_005f1 = _jspx_th_bean_005fwrite_005f1
                                            .doStartTag();
                                    if (_jspx_th_bean_005fwrite_005f1
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                                .reuse(_jspx_th_bean_005fwrite_005f1);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                            .reuse(_jspx_th_bean_005fwrite_005f1);
                                    int evalDoAfterBody = _jspx_th_logic_005fnotEmpty_005f0.doAfterBody();
                                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                        break;
                                } while (true);
                            }
                            if (_jspx_th_logic_005fnotEmpty_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005flogic_005fnotEmpty_005fproperty_005fname
                                        .reuse(_jspx_th_logic_005fnotEmpty_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005flogic_005fnotEmpty_005fproperty_005fname
                                    .reuse(_jspx_th_logic_005fnotEmpty_005f0);
                            //  logic:empty
                            org.apache.struts.taglib.logic.EmptyTag _jspx_th_logic_005fempty_005f0 = (org.apache.struts.taglib.logic.EmptyTag) _005fjspx_005ftagPool_005flogic_005fempty_005fproperty_005fname
                                    .get(org.apache.struts.taglib.logic.EmptyTag.class);
                            _jspx_th_logic_005fempty_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_logic_005fempty_005f0.setParent(null);
                            _jspx_th_logic_005fempty_005f0.setName(curFormName);
                            _jspx_th_logic_005fempty_005f0.setProperty(formFieldName);
                            int _jspx_eval_logic_005fempty_005f0 = _jspx_th_logic_005fempty_005f0.doStartTag();
                            if (_jspx_eval_logic_005fempty_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                do {
                                    out.print((Validator
                                            .isNotNull(request.getParameter("organizationName_tagEntries"))
                                                    ? request.getParameter("organizationName_tagEntries")
                                                    : ""));
                                    int evalDoAfterBody = _jspx_th_logic_005fempty_005f0.doAfterBody();
                                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                        break;
                                } while (true);
                            }
                            if (_jspx_th_logic_005fempty_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005flogic_005fempty_005fproperty_005fname
                                        .reuse(_jspx_th_logic_005fempty_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005flogic_005fempty_005fproperty_005fname
                                    .reuse(_jspx_th_logic_005fempty_005f0);
                            out.write("\",\r\n");
                            out.write("                  focus: false\r\n");
                            out.write("                  }\r\n");
                            out.write("                  );\r\n");
                            out.write("                  }\r\n");
                            out.write("                  );\r\n");
                            out.write("             </script>\r\n");
                            out.write("\t     \t");
                        }
                        out.write("\r\n");
                        out.write("\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f1 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f1 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                            out.write("\r\n");
                            out.write("\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("    \t ");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f1 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f1.setParent(null);
                        _jspx_th_html_005ferrors_005f1.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f1 = _jspx_th_html_005ferrors_005f1.doStartTag();
                        if (_jspx_th_html_005ferrors_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f1);
                        out.write("\r\n");
                        out.write("\t     \t</div>\r\n");
                        out.write("        ");
                    }
                }
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
        out.write('\r');
        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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.forms.struts_005fdiv_005ftextarea_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;//from   www  .  ja va2  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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f0 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f0.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f0.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f0.setId("evenFlagAttribute");
        _jspx_th_tiles_005fuseAttribute_005f0.setName("even_flag");
        _jspx_th_tiles_005fuseAttribute_005f0.setClassname("java.lang.String");
        _jspx_th_tiles_005fuseAttribute_005f0.setIgnore(true);
        int _jspx_eval_tiles_005fuseAttribute_005f0 = _jspx_th_tiles_005fuseAttribute_005f0.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
        java.lang.String evenFlagAttribute = null;
        evenFlagAttribute = (java.lang.String) _jspx_page_context.findAttribute("evenFlagAttribute");
        out.write("\r\n");
        out.write("\r\n");
        try {
            String namespace = ((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace();

            String formFieldName;
            String formFieldKey;
            boolean required;
            String formFieldType;
            String value = null;
            String fieldDateFormat = "";
            boolean hidden;
            boolean readonly;
            String collectionName;
            String collectionAttrName;
            String collectionProperty;
            String collectionLabel;
            int field_size;
            int textAreaCols;
            int textAreaRows;
            int popupWidth;
            int popupHeight;
            String helpMessage = null;
            com.ext.sql.StrutsFormFields form_field;

            boolean textAreaHtmlFlag = false;
            String onChange = "";
            String lookupAction = "";
            boolean previous_fieldset = false;
            boolean secretField = false;

            form_field = (com.ext.sql.StrutsFormFields) request.getAttribute(namespace + "_STRUTS_DIV_FIELD");
            String curFormName = (String) request.getAttribute(namespace + "_STRUTS_DIV_curFormName");

            formFieldName = form_field.getFormFieldName();
            formFieldKey = form_field.getFormFieldKey();
            formFieldType = form_field.getFormFieldType();
            fieldDateFormat = form_field.getDateFormat();
            if (fieldDateFormat == null || fieldDateFormat.equals(""))
                fieldDateFormat = CommonDefs.DATE_FORMAT_JSCRIPT;
            hidden = form_field.isHidden();
            readonly = form_field.isReadonly();
            required = form_field.isRequired();
            collectionName = form_field.getCollectionName();
            collectionAttrName = form_field.getCollectionAttrName();
            collectionProperty = form_field.getCollectionProperty();
            collectionLabel = form_field.getCollectionLabel();
            field_size = form_field.getField_size();
            textAreaCols = form_field.getTextAreaCols();
            textAreaRows = form_field.getTextAreaRows();
            popupWidth = form_field.getPopupWidth();
            popupHeight = form_field.getPopupHeight();
            secretField = form_field.isSecretTextField();
            helpMessage = form_field.getHelpMessage();

            String colour = null;
            String bgcolour = null;
            value = form_field.getValue();
            if (Validator.isNull(value) && Validator.isNotNull(request.getParameter(formFieldName)))
                value = request.getParameter(formFieldName);
            colour = form_field.getColour();
            bgcolour = colour;
            if (colour != null && colour.equals("inherit"))
                bgcolour = null;
            // force span colour to always be the default
            colour = "inherit";

            String curEvenFlag = evenFlagAttribute;
            if (curEvenFlag == null || curEvenFlag.equals(""))
                curEvenFlag = "white";

            if (formFieldType.equals("textarea")) {
                if (form_field.isDynamicField()) {

                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t<input type=\"hidden\" id=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\">\r\n");
                        out.write("     \t\t");

                    } else {
                        out.write("\r\n");
                        out.write("     \t\t<div class=\"ctrl-holder\" id=\"");
                        out.print(curEvenFlag);
                        out.write("\">\r\n");
                        out.write("\t\t\t\t<label style=\"color:");
                        out.print(colour);
                        out.write("\" for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t\t\t\r\n");
                        out.write("\t     \t");
                        if (readonly) {
                            out.write("\r\n");
                            out.write("\t     \t");
                            out.print((value != null ? value : ""));
                            out.write("\r\n");
                            out.write("\t     \t");
                        } else {
                            out.write("\r\n");
                            out.write("\t     \t<textarea cols=\"");
                            out.print("" + textAreaCols);
                            out.write("\" rows=\"");
                            out.print("" + textAreaRows);
                            out.write('"');
                            out.write(' ');
                            if (bgcolour != null) {
                                out.write(" style=\"background-color:");
                                out.print(bgcolour);
                                out.write('"');
                                out.write(' ');
                            }
                            out.write(" id=\"");
                            out.print(formFieldName);
                            out.write("\" name=\"");
                            out.print(formFieldName);
                            out.write('"');
                            out.write('>');
                            out.print((value != null ? value : ""));
                            out.write("</textarea>\r\n");
                            out.write("\t     \t");
                            if (required) {
                                out.write("<em>*</em>");
                            }
                            out.write("\r\n");
                            out.write("\t\t\t");
                        }
                        out.write("\r\n");
                        out.write("\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f0 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f0 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                            out.write("\r\n");
                            out.write("\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("    \t \t");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f0 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f0.setParent(null);
                        _jspx_th_html_005ferrors_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f0 = _jspx_th_html_005ferrors_005f0.doStartTag();
                        if (_jspx_th_html_005ferrors_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f0);
                        out.write("\r\n");
                        out.write("\t    \t</div>\r\n");
                        out.write("\t\t\t");
                    }

                } else {

                    if (hidden) {
                        out.write("\r\n");
                        out.write("\t\t   \t");
                        //  html:hidden
                        org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f0 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.HiddenTag.class);
                        _jspx_th_html_005fhidden_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005fhidden_005f0.setParent(null);
                        _jspx_th_html_005fhidden_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005fhidden_005f0 = _jspx_th_html_005fhidden_005f0.doStartTag();
                        if (_jspx_th_html_005fhidden_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005fhidden_005f0);
                        out.write("\r\n");
                        out.write("\t\t");
                    } else if (readonly) {

                        out.write("\r\n");
                        out.write("\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\r\n");
                        out.write("\t\t<DIV>\r\n");
                        out.write("\t\t\t");
                        //  bean:write
                        org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_005fwrite_005f0 = (org.apache.struts.taglib.bean.WriteTag) _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005ffilter_005fnobody
                                .get(org.apache.struts.taglib.bean.WriteTag.class);
                        _jspx_th_bean_005fwrite_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_bean_005fwrite_005f0.setParent(null);
                        _jspx_th_bean_005fwrite_005f0.setFilter(false);
                        _jspx_th_bean_005fwrite_005f0.setName(curFormName);
                        _jspx_th_bean_005fwrite_005f0.setProperty(formFieldName);
                        int _jspx_eval_bean_005fwrite_005f0 = _jspx_th_bean_005fwrite_005f0.doStartTag();
                        if (_jspx_th_bean_005fwrite_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005ffilter_005fnobody
                                    .reuse(_jspx_th_bean_005fwrite_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005ffilter_005fnobody
                                .reuse(_jspx_th_bean_005fwrite_005f0);
                        out.write("\r\n");
                        out.write("\t\t\t&nbsp;\r\n");
                        out.write("\t\t</DIV>\r\n");
                        out.write("\t\t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f1 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f1 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                            out.write("\r\n");
                            out.write("\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("\t</div>\r\n");
                        out.write("\t");

                    } else {

                        out.write("\r\n");
                        out.write("\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t <label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t     \t\r\n");
                        out.write("\t     \t<textarea title=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\"  cols=\"");
                        out.print("" + textAreaCols);
                        out.write("\" rows=\"");
                        out.print("" + textAreaRows);
                        out.write('"');
                        out.write('>');
                        //  bean:write
                        org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_005fwrite_005f1 = (org.apache.struts.taglib.bean.WriteTag) _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                .get(org.apache.struts.taglib.bean.WriteTag.class);
                        _jspx_th_bean_005fwrite_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_bean_005fwrite_005f1.setParent(null);
                        _jspx_th_bean_005fwrite_005f1.setName(curFormName);
                        _jspx_th_bean_005fwrite_005f1.setProperty(formFieldName);
                        int _jspx_eval_bean_005fwrite_005f1 = _jspx_th_bean_005fwrite_005f1.doStartTag();
                        if (_jspx_th_bean_005fwrite_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                    .reuse(_jspx_th_bean_005fwrite_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                .reuse(_jspx_th_bean_005fwrite_005f1);
                        out.write("</textarea>\r\n");
                        out.write("\t     \t");
                        if (required) {
                            out.write("<em>*</em>");
                        }
                        out.write("\r\n");
                        out.write("\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f2 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f2 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f2
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f2
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f2);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f2);
                            out.write("\r\n");
                            out.write("\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("    \t \t");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f1 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f1.setParent(null);
                        _jspx_th_html_005ferrors_005f1.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f1 = _jspx_th_html_005ferrors_005f1.doStartTag();
                        if (_jspx_th_html_005ferrors_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f1);
                        out.write("\r\n");
                        out.write("\t </div>\r\n");
                        out.write("\t");

                    }
                }
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
        out.write('\r');
        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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.forms.struts_005fdiv_005ftext_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 a2s .  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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        try {
            String namespace = ((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace();

            String formFieldName;
            String formFieldKey;
            boolean required;
            String formFieldType;
            String value = null;
            String fieldDateFormat = "";
            boolean hidden;
            boolean readonly;
            String collectionName;
            String collectionAttrName;
            String collectionProperty;
            String collectionLabel;
            int field_size;
            int textAreaCols;
            int textAreaRows;
            int popupWidth;
            int popupHeight;
            String helpMessage = null;
            com.ext.sql.StrutsFormFields form_field;

            boolean textAreaHtmlFlag = false;
            String onChange = "";
            String lookupAction = "";
            boolean previous_fieldset = false;
            boolean secretField = false;
            String colour = null;
            String bgcolour = null;

            form_field = (com.ext.sql.StrutsFormFields) request.getAttribute(namespace + "_STRUTS_DIV_FIELD");
            String curFormName = (String) request.getAttribute(namespace + "_STRUTS_DIV_curFormName");

            formFieldName = form_field.getFormFieldName();
            formFieldKey = form_field.getFormFieldKey();
            formFieldType = form_field.getFormFieldType();
            fieldDateFormat = form_field.getDateFormat();
            if (fieldDateFormat == null || fieldDateFormat.equals(""))
                fieldDateFormat = CommonDefs.DATE_FORMAT_JSCRIPT;
            hidden = form_field.isHidden();
            readonly = form_field.isReadonly();
            required = form_field.isRequired();
            collectionName = form_field.getCollectionName();
            collectionAttrName = form_field.getCollectionAttrName();
            collectionProperty = form_field.getCollectionProperty();
            collectionLabel = form_field.getCollectionLabel();
            field_size = form_field.getField_size();
            textAreaCols = form_field.getTextAreaCols();
            textAreaRows = form_field.getTextAreaRows();
            popupWidth = form_field.getPopupWidth();
            popupHeight = form_field.getPopupHeight();
            secretField = form_field.isSecretTextField();
            helpMessage = form_field.getHelpMessage();
            value = form_field.getValue();
            if (Validator.isNull(value) && Validator.isNotNull(request.getParameter(formFieldName)))
                value = request.getParameter(formFieldName);
            colour = form_field.getColour();
            bgcolour = colour;
            if (colour != null && colour.equals("inherit"))
                bgcolour = null;
            // force span colour to always be the default
            colour = "inherit";

            if (formFieldType.equals("text")) {
                if (form_field.isDynamicField()) {
                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t<input type=\"hidden\" id=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\">\r\n");
                        out.write("     \t\t");

                    } else if (readonly) {
                        out.write("\r\n");
                        out.write("     \t\t\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t     \t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t\t\t\t     \t<input alt=\"");
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("\" type=\"hidden\" id=\"");
                        out.print(formFieldName);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write("\">\r\n");
                        out.write("\t\t\t\t     \t");
                        out.print((value != null ? value : ""));
                        out.write("\r\n");
                        out.write("\t\t\t\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f0 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f0.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f0 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f0);
                            out.write("\r\n");
                            out.write("\t\t\t\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("\t\t\t    \t \t");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f0 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f0.setParent(null);
                        _jspx_th_html_005ferrors_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f0 = _jspx_th_html_005ferrors_005f0.doStartTag();
                        if (_jspx_th_html_005ferrors_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f0);
                        out.write("\r\n");
                        out.write("\t\t\t     \t</div>\r\n");
                        out.write("\t\t\t     \t");

                    } else {
                        out.write("\r\n");
                        out.write("\t\t\t\t\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t\t     \t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t\t\t\t\t\t\t\t<input alt=\"");
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write('"');
                        out.write(' ');
                        if (bgcolour != null) {
                            out.write(" style=\"background-color:");
                            out.print(bgcolour);
                            out.write('"');
                            out.write(' ');
                        }
                        out.write(" id=\"");
                        out.print(formFieldName);
                        out.write("\" type=\"text\" size=\"");
                        out.print("" + field_size);
                        out.write("\" name=\"");
                        out.print(formFieldName);
                        out.write("\" value=\"");
                        out.print((value != null ? value : ""));
                        out.write('"');
                        out.write('>');
                        if (required) {
                            out.write("<em>*</em>");
                        }
                        out.write("\r\n");
                        out.write("\t\t\t\t\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f1 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f1.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f1 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f1
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f1);
                            out.write("\r\n");
                            out.write("\t\t\t\t\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("\t\t\t\t    \t \t");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f1 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f1.setParent(null);
                        _jspx_th_html_005ferrors_005f1.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f1 = _jspx_th_html_005ferrors_005f1.doStartTag();
                        if (_jspx_th_html_005ferrors_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f1);
                        out.write("\r\n");
                        out.write("\t\t\t\t   </div>\r\n");
                        out.write("\t\t\t\t   ");

                    }
                }

                else {
                    onChange = (form_field.getOnChange() != null) ? form_field.getOnChange() : "";
                    if (hidden) {
                        out.write("\r\n");
                        out.write("    \t \t");
                        //  html:hidden
                        org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f0 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.HiddenTag.class);
                        _jspx_th_html_005fhidden_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_html_005fhidden_005f0.setParent(null);
                        _jspx_th_html_005fhidden_005f0.setProperty(formFieldName);
                        int _jspx_eval_html_005fhidden_005f0 = _jspx_th_html_005fhidden_005f0.doStartTag();
                        if (_jspx_th_html_005fhidden_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005fhidden_005f0);
                        out.write("\r\n");
                        out.write("     \t\t");

                    } else if (readonly && !secretField) {
                        out.write("\r\n");
                        out.write("         \t\t<div class=\"ctrl-holder\">\r\n");
                        out.write("\t\t\t\t     \t<label for=\"");
                        out.print(formFieldName);
                        out.write('"');
                        out.write('>');
                        out.print(LanguageUtil.get(pageContext, formFieldKey));
                        out.write("</label>\r\n");
                        out.write("\t\t\t\t     \t");
                        //  html:hidden
                        org.apache.struts.taglib.html.HiddenTag _jspx_th_html_005fhidden_005f1 = (org.apache.struts.taglib.html.HiddenTag) _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.HiddenTag.class);
                        _jspx_th_html_005fhidden_005f1.setPageContext(_jspx_page_context);
                        _jspx_th_html_005fhidden_005f1.setParent(null);
                        _jspx_th_html_005fhidden_005f1.setProperty(formFieldName);
                        int _jspx_eval_html_005fhidden_005f1 = _jspx_th_html_005fhidden_005f1.doStartTag();
                        if (_jspx_th_html_005fhidden_005f1
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005fhidden_005f1);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005fhidden_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005fhidden_005f1);
                        out.write("\r\n");
                        out.write("\t\t\t\t     \t");
                        //  bean:write
                        org.apache.struts.taglib.bean.WriteTag _jspx_th_bean_005fwrite_005f0 = (org.apache.struts.taglib.bean.WriteTag) _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                .get(org.apache.struts.taglib.bean.WriteTag.class);
                        _jspx_th_bean_005fwrite_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_bean_005fwrite_005f0.setParent(null);
                        _jspx_th_bean_005fwrite_005f0.setName(curFormName);
                        _jspx_th_bean_005fwrite_005f0.setProperty(formFieldName);
                        int _jspx_eval_bean_005fwrite_005f0 = _jspx_th_bean_005fwrite_005f0.doStartTag();
                        if (_jspx_th_bean_005fwrite_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                    .reuse(_jspx_th_bean_005fwrite_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005fbean_005fwrite_005fproperty_005fname_005fnobody
                                .reuse(_jspx_th_bean_005fwrite_005f0);
                        out.write("\r\n");
                        out.write("\t\t\t\t     \t");
                        if (helpMessage != null) {
                            out.write("\r\n");
                            out.write("\t\t\t\t\t\t\t");
                            //  liferay-ui:icon-help
                            com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f2 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .get(com.liferay.taglib.ui.IconHelpTag.class);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setPageContext(_jspx_page_context);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setParent(null);
                            _jspx_th_liferay_002dui_005ficon_002dhelp_005f2.setMessage(helpMessage);
                            int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f2 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f2
                                    .doStartTag();
                            if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f2
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f2);
                                return;
                            }
                            _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                    .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f2);
                            out.write("\r\n");
                            out.write("\t\t\t\t\t    ");
                        }
                        out.write("\r\n");
                        out.write("\t\t\t    \t \t");
                        //  html:errors
                        org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f2 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .get(org.apache.struts.taglib.html.ErrorsTag.class);
                        _jspx_th_html_005ferrors_005f2.setPageContext(_jspx_page_context);
                        _jspx_th_html_005ferrors_005f2.setParent(null);
                        _jspx_th_html_005ferrors_005f2.setProperty(formFieldName);
                        int _jspx_eval_html_005ferrors_005f2 = _jspx_th_html_005ferrors_005f2.doStartTag();
                        if (_jspx_th_html_005ferrors_005f2
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f2);
                            return;
                        }
                        _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                .reuse(_jspx_th_html_005ferrors_005f2);
                        out.write("\r\n");
                        out.write("\t\t\t     \t</div>\r\n");
                        out.write("\t\t\t     \t");

                    } else {
                        if (!secretField) {

                            out.write("\r\n");
                            out.write("\t\t\t     \t\t<div class=\"ctrl-holder\">\r\n");
                            out.write("\t\t\t\t\t     \t<label for=\"");
                            out.print(formFieldName);
                            out.write('"');
                            out.write('>');
                            out.print(LanguageUtil.get(pageContext, formFieldKey));
                            out.write("</label>\r\n");
                            out.write("\t\t\t\t\t     \t");
                            //  html:text
                            org.apache.struts.taglib.html.TextTag _jspx_th_html_005ftext_005f0 = (org.apache.struts.taglib.html.TextTag) _005fjspx_005ftagPool_005fhtml_005ftext_005fsize_005freadonly_005fproperty_005fonchange_005falt_005fnobody
                                    .get(org.apache.struts.taglib.html.TextTag.class);
                            _jspx_th_html_005ftext_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_html_005ftext_005f0.setParent(null);
                            _jspx_th_html_005ftext_005f0.setAlt(LanguageUtil.get(pageContext, formFieldKey));
                            _jspx_th_html_005ftext_005f0.setProperty(formFieldName);
                            _jspx_th_html_005ftext_005f0.setSize("" + field_size);
                            _jspx_th_html_005ftext_005f0.setOnchange(onChange);
                            _jspx_th_html_005ftext_005f0.setReadonly(readonly);
                            int _jspx_eval_html_005ftext_005f0 = _jspx_th_html_005ftext_005f0.doStartTag();
                            if (_jspx_th_html_005ftext_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fhtml_005ftext_005fsize_005freadonly_005fproperty_005fonchange_005falt_005fnobody
                                        .reuse(_jspx_th_html_005ftext_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fhtml_005ftext_005fsize_005freadonly_005fproperty_005fonchange_005falt_005fnobody
                                    .reuse(_jspx_th_html_005ftext_005f0);
                            if (required) {
                                out.write("<em>*</em>");
                            }
                            out.write("\r\n");
                            out.write("\t\t\t\t\t     \t");
                            if (helpMessage != null) {
                                out.write("\r\n");
                                out.write("\t\t\t\t\t\t\t\t");
                                //  liferay-ui:icon-help
                                com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f3 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .get(com.liferay.taglib.ui.IconHelpTag.class);
                                _jspx_th_liferay_002dui_005ficon_002dhelp_005f3
                                        .setPageContext(_jspx_page_context);
                                _jspx_th_liferay_002dui_005ficon_002dhelp_005f3.setParent(null);
                                _jspx_th_liferay_002dui_005ficon_002dhelp_005f3.setMessage(helpMessage);
                                int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f3 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f3
                                        .doStartTag();
                                if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f3
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                            .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f3);
                                    return;
                                }
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f3);
                                out.write("\r\n");
                                out.write("\t\t\t\t\t\t    ");
                            }
                            out.write("\r\n");
                            out.write("\t\t\t\t    \t \t");
                            //  html:errors
                            org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f3 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .get(org.apache.struts.taglib.html.ErrorsTag.class);
                            _jspx_th_html_005ferrors_005f3.setPageContext(_jspx_page_context);
                            _jspx_th_html_005ferrors_005f3.setParent(null);
                            _jspx_th_html_005ferrors_005f3.setProperty(formFieldName);
                            int _jspx_eval_html_005ferrors_005f3 = _jspx_th_html_005ferrors_005f3.doStartTag();
                            if (_jspx_th_html_005ferrors_005f3
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                        .reuse(_jspx_th_html_005ferrors_005f3);
                                return;
                            }
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f3);
                            out.write("\r\n");
                            out.write("\t\t\t\t     \t</div>\r\n");
                            out.write("\t\t\t\t");
                        } else {
                            out.write("\r\n");
                            out.write("\t\t\t\t\t\t<div class=\"ctrl-holder\">\r\n");
                            out.write("\t\t\t\t     \t<label for=\"");
                            out.print(formFieldName);
                            out.write('"');
                            out.write('>');
                            out.print(LanguageUtil.get(pageContext, formFieldKey));
                            out.write("</label>\r\n");
                            out.write("\t\t\t\t     \t");
                            //  html:password
                            org.apache.struts.taglib.html.PasswordTag _jspx_th_html_005fpassword_005f0 = (org.apache.struts.taglib.html.PasswordTag) _005fjspx_005ftagPool_005fhtml_005fpassword_005fsize_005freadonly_005fproperty_005falt_005fnobody
                                    .get(org.apache.struts.taglib.html.PasswordTag.class);
                            _jspx_th_html_005fpassword_005f0.setPageContext(_jspx_page_context);
                            _jspx_th_html_005fpassword_005f0.setParent(null);
                            _jspx_th_html_005fpassword_005f0
                                    .setAlt(LanguageUtil.get(pageContext, formFieldKey));
                            _jspx_th_html_005fpassword_005f0.setProperty(formFieldName);
                            _jspx_th_html_005fpassword_005f0.setSize("" + field_size);
                            _jspx_th_html_005fpassword_005f0.setReadonly(readonly);
                            int _jspx_eval_html_005fpassword_005f0 = _jspx_th_html_005fpassword_005f0
                                    .doStartTag();
                            if (_jspx_th_html_005fpassword_005f0
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fhtml_005fpassword_005fsize_005freadonly_005fproperty_005falt_005fnobody
                                        .reuse(_jspx_th_html_005fpassword_005f0);
                                return;
                            }
                            _005fjspx_005ftagPool_005fhtml_005fpassword_005fsize_005freadonly_005fproperty_005falt_005fnobody
                                    .reuse(_jspx_th_html_005fpassword_005f0);
                            if (required) {
                                out.write("<em>*</em>");
                            }
                            out.write("\r\n");
                            out.write("\t\t\t\t     \t");
                            if (helpMessage != null) {
                                out.write("\r\n");
                                out.write("\t\t\t\t\t\t\t");
                                //  liferay-ui:icon-help
                                com.liferay.taglib.ui.IconHelpTag _jspx_th_liferay_002dui_005ficon_002dhelp_005f4 = (com.liferay.taglib.ui.IconHelpTag) _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .get(com.liferay.taglib.ui.IconHelpTag.class);
                                _jspx_th_liferay_002dui_005ficon_002dhelp_005f4
                                        .setPageContext(_jspx_page_context);
                                _jspx_th_liferay_002dui_005ficon_002dhelp_005f4.setParent(null);
                                _jspx_th_liferay_002dui_005ficon_002dhelp_005f4.setMessage(helpMessage);
                                int _jspx_eval_liferay_002dui_005ficon_002dhelp_005f4 = _jspx_th_liferay_002dui_005ficon_002dhelp_005f4
                                        .doStartTag();
                                if (_jspx_th_liferay_002dui_005ficon_002dhelp_005f4
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                            .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f4);
                                    return;
                                }
                                _005fjspx_005ftagPool_005fliferay_002dui_005ficon_002dhelp_005fmessage_005fnobody
                                        .reuse(_jspx_th_liferay_002dui_005ficon_002dhelp_005f4);
                                out.write("\r\n");
                                out.write("\t\t\t\t\t    ");
                            }
                            out.write("\r\n");
                            out.write("\t\t\t    \t \t");
                            //  html:errors
                            org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_005ferrors_005f4 = (org.apache.struts.taglib.html.ErrorsTag) _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .get(org.apache.struts.taglib.html.ErrorsTag.class);
                            _jspx_th_html_005ferrors_005f4.setPageContext(_jspx_page_context);
                            _jspx_th_html_005ferrors_005f4.setParent(null);
                            _jspx_th_html_005ferrors_005f4.setProperty(formFieldName);
                            int _jspx_eval_html_005ferrors_005f4 = _jspx_th_html_005ferrors_005f4.doStartTag();
                            if (_jspx_th_html_005ferrors_005f4
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                        .reuse(_jspx_th_html_005ferrors_005f4);
                                return;
                            }
                            _005fjspx_005ftagPool_005fhtml_005ferrors_005fproperty_005fnobody
                                    .reuse(_jspx_th_html_005ferrors_005f4);
                            out.write("\r\n");
                            out.write("\t\t\t\t    </div>\r\n");
                            out.write("\t\t\t\t");
                        }
                    }
                }
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
        out.write('\r');
        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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.struts_005fdiv_005ffields_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;/*from  w ww  .j a  v  a  2s.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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        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("  \r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f0 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f0.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f0.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f0.setId("tileAttribute");
        _jspx_th_tiles_005fuseAttribute_005f0.setName("attributeName");
        _jspx_th_tiles_005fuseAttribute_005f0.setClassname("java.lang.String");
        _jspx_th_tiles_005fuseAttribute_005f0.setIgnore(true);
        int _jspx_eval_tiles_005fuseAttribute_005f0 = _jspx_th_tiles_005fuseAttribute_005f0.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
        java.lang.String tileAttribute = null;
        tileAttribute = (java.lang.String) _jspx_page_context.findAttribute("tileAttribute");
        out.write('\r');
        out.write('\n');
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f1 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f1.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f1.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f1.setId("curFormNameAttribute");
        _jspx_th_tiles_005fuseAttribute_005f1.setName("formName");
        _jspx_th_tiles_005fuseAttribute_005f1.setClassname("java.lang.String");
        int _jspx_eval_tiles_005fuseAttribute_005f1 = _jspx_th_tiles_005fuseAttribute_005f1.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f1);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f1);
        java.lang.String curFormNameAttribute = null;
        curFormNameAttribute = (java.lang.String) _jspx_page_context.findAttribute("curFormNameAttribute");
        out.write('\r');
        out.write('\n');
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f2 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f2.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f2.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f2.setId("useTabs");
        _jspx_th_tiles_005fuseAttribute_005f2.setName("useTabs");
        _jspx_th_tiles_005fuseAttribute_005f2.setClassname("java.lang.String");
        _jspx_th_tiles_005fuseAttribute_005f2.setIgnore(true);
        int _jspx_eval_tiles_005fuseAttribute_005f2 = _jspx_th_tiles_005fuseAttribute_005f2.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f2);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f2);
        java.lang.String useTabs = null;
        useTabs = (java.lang.String) _jspx_page_context.findAttribute("useTabs");
        out.write('\r');
        out.write('\n');
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f3 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f3.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f3.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f3.setId("showTopErrors");
        _jspx_th_tiles_005fuseAttribute_005f3.setName("showTopErrors");
        _jspx_th_tiles_005fuseAttribute_005f3.setClassname("java.lang.String");
        _jspx_th_tiles_005fuseAttribute_005f3.setIgnore(true);
        int _jspx_eval_tiles_005fuseAttribute_005f3 = _jspx_th_tiles_005fuseAttribute_005f3.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f3);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f3);
        java.lang.String showTopErrors = null;
        showTopErrors = (java.lang.String) _jspx_page_context.findAttribute("showTopErrors");
        out.write("\r\n");
        out.write("\t\r\n");
        out.write("\r\n");
        try {
            String namespace = ((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace();
            String JS_PREFIX = (tileAttribute != null ? tileAttribute : "");
            request.setAttribute(namespace + "_STRUTS_DIV_JS_PREFIX", JS_PREFIX);

            ActionErrors formErrors = (ActionErrors) request.getAttribute(Globals.ERROR_KEY);

            if (formErrors != null && !formErrors.isEmpty()
                    && (showTopErrors == null || showTopErrors.equals("true"))) {
                out.write("\r\n");
                out.write("\t\t\t<div class=\"portlet-msg-error\"><em>\r\n");
                out.write("\t\t\t");
                out.print(LanguageUtil.get(pageContext, "errors.struts.form.top.1") + " " + formErrors.size()
                        + " " + LanguageUtil.get(pageContext, "errors.struts.form.top.2"));
                out.write("</em></div>\r\n");
                out.write("\t");
            }

            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write(
                    "<script language=\"JavaScript\" src=\"/html/js/editor/modalwindow.js\"></script><noscript></noscript>\r\n");
            out.write("\r\n");

            String curFormName = curFormNameAttribute;
            request.setAttribute(namespace + "_STRUTS_DIV_curFormName", curFormName);

            Vector _struts_fields = null;
            if (tileAttribute != null)
                _struts_fields = (Vector) request.getAttribute(tileAttribute);
            else {
                _struts_fields = (Vector) request.getAttribute(namespace + CommonDefs.ATTR_FORM_FIELDS);
                if (_struts_fields == null) {
                    _struts_fields = (Vector) request.getAttribute(CommonDefs.ATTR_FORM_FIELDS);
                }
                if (_struts_fields == null)
                    _struts_fields = new Vector();
            }

            StrutsFormFields form_field;
            String tabNames = "";
            boolean foundTabs = false;

            if (useTabs != null && useTabs.equals("true")) {
                for (int index = 0; _struts_fields != null && index < _struts_fields.size(); index++) {
                    form_field = (StrutsFormFields) _struts_fields.get(index);
                    if (form_field instanceof StrutsFormFieldsTabDelimiter) {
                        if (index == 0 || !foundTabs) {
                            tabNames += ((StrutsFormFieldsTabDelimiter) form_field).getTabNameKey();
                        } else {
                            tabNames += "," + ((StrutsFormFieldsTabDelimiter) form_field).getTabNameKey();
                        }
                        foundTabs = true;
                    }
                }
            }

            String onSubmitBody = "";
            String formFieldName;
            String formFieldKey;
            boolean required;
            String formFieldType;
            String value = null;
            String fieldDateFormat = "";
            boolean hidden;
            boolean readonly;
            String collectionName;
            String collectionAttrName;
            String collectionProperty;
            String collectionLabel;
            int field_size;
            int textAreaCols;
            int textAreaRows;
            int popupWidth;
            int popupHeight;
            String helpMessage = null;

            boolean textAreaHtmlFlag = false;
            String onChange = "";
            String lookupAction = "";
            boolean previous_fieldset = false;
            boolean secretField = false;

            out.write("\r\n");
            out.write("<script type=\"text/javascript\">\r\n");
            out.write("var ");
            out.print(JS_PREFIX);
            out.write("_fck_fields = '';\r\n");
            out.write("\r\n");
            out.write("function ");
            out.print(JS_PREFIX);
            out.write("_fck_updateHiddenText() {\r\n");
            out.write("    if (");
            out.print(JS_PREFIX);
            out.write("_fck_fields)\r\n");
            out.write("    {\r\n");
            out.write("\teval( ");
            out.print(JS_PREFIX);
            out.write("_fck_fields );\r\n");
            out.write("    }\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<noscript></noscript>\r\n");
            out.write("\r\n");
            out.write("<div class=\"inline-labels\">\r\n");
            out.write("\t\r\n");
            out.write("\t\r\n");
            out.write("\r\n");
            out.write("\r\n");

            for (int index = 0; _struts_fields != null && index < _struts_fields.size(); index++) {
                form_field = (StrutsFormFields) _struts_fields.get(index);
                if (form_field instanceof StrutsFormFieldsTabDelimiter) {
                    if (foundTabs && Validator.isNotNull(tabNames)) {
                        Vector _struts_fields_tabs = new Vector();
                        for (int inner = index; inner < _struts_fields.size(); inner++) {
                            _struts_fields_tabs.add(_struts_fields.get(inner));
                        }
                        String attributeName = CommonDefs.ATTR_FORM_FIELDS + "_TABS";
                        if (Validator.isNotNull(tileAttribute)) {
                            attributeName = tileAttribute + "_TABS";
                        }
                        request.setAttribute(attributeName, _struts_fields_tabs);

                        out.write("\r\n");
                        out.write("\t\t");
                        //  tiles:insert
                        org.apache.struts.taglib.tiles.InsertTag _jspx_th_tiles_005finsert_005f0 = (org.apache.struts.taglib.tiles.InsertTag) _005fjspx_005ftagPool_005ftiles_005finsert_005fpage_005fflush
                                .get(org.apache.struts.taglib.tiles.InsertTag.class);
                        _jspx_th_tiles_005finsert_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_tiles_005finsert_005f0.setParent(null);
                        _jspx_th_tiles_005finsert_005f0
                                .setPage("/html/portlet/ext/struts_includes/forms/struts_div_tab_fields.jsp");
                        _jspx_th_tiles_005finsert_005f0.setFlush(true);
                        int _jspx_eval_tiles_005finsert_005f0 = _jspx_th_tiles_005finsert_005f0.doStartTag();
                        if (_jspx_eval_tiles_005finsert_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                            do {
                                out.write("\r\n");
                                out.write("\t\t\t\t");
                                //  tiles:put
                                org.apache.struts.taglib.tiles.PutTag _jspx_th_tiles_005fput_005f0 = (org.apache.struts.taglib.tiles.PutTag) _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                        .get(org.apache.struts.taglib.tiles.PutTag.class);
                                _jspx_th_tiles_005fput_005f0.setPageContext(_jspx_page_context);
                                _jspx_th_tiles_005fput_005f0.setParent(
                                        (javax.servlet.jsp.tagext.Tag) _jspx_th_tiles_005finsert_005f0);
                                _jspx_th_tiles_005fput_005f0.setName("formName");
                                _jspx_th_tiles_005fput_005f0.setValue(curFormNameAttribute);
                                int _jspx_eval_tiles_005fput_005f0 = _jspx_th_tiles_005fput_005f0.doStartTag();
                                if (_jspx_th_tiles_005fput_005f0
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                            .reuse(_jspx_th_tiles_005fput_005f0);
                                    return;
                                }
                                _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                        .reuse(_jspx_th_tiles_005fput_005f0);
                                out.write("\r\n");
                                out.write("\t\t\t\t");
                                //  tiles:put
                                org.apache.struts.taglib.tiles.PutTag _jspx_th_tiles_005fput_005f1 = (org.apache.struts.taglib.tiles.PutTag) _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                        .get(org.apache.struts.taglib.tiles.PutTag.class);
                                _jspx_th_tiles_005fput_005f1.setPageContext(_jspx_page_context);
                                _jspx_th_tiles_005fput_005f1.setParent(
                                        (javax.servlet.jsp.tagext.Tag) _jspx_th_tiles_005finsert_005f0);
                                _jspx_th_tiles_005fput_005f1.setName("attributeName");
                                _jspx_th_tiles_005fput_005f1.setValue(attributeName);
                                int _jspx_eval_tiles_005fput_005f1 = _jspx_th_tiles_005fput_005f1.doStartTag();
                                if (_jspx_th_tiles_005fput_005f1
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                            .reuse(_jspx_th_tiles_005fput_005f1);
                                    return;
                                }
                                _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                        .reuse(_jspx_th_tiles_005fput_005f1);
                                out.write("\r\n");
                                out.write("\t\t\t\t");
                                //  tiles:put
                                org.apache.struts.taglib.tiles.PutTag _jspx_th_tiles_005fput_005f2 = (org.apache.struts.taglib.tiles.PutTag) _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                        .get(org.apache.struts.taglib.tiles.PutTag.class);
                                _jspx_th_tiles_005fput_005f2.setPageContext(_jspx_page_context);
                                _jspx_th_tiles_005fput_005f2.setParent(
                                        (javax.servlet.jsp.tagext.Tag) _jspx_th_tiles_005finsert_005f0);
                                _jspx_th_tiles_005fput_005f2.setName("tabNames");
                                _jspx_th_tiles_005fput_005f2.setValue(tabNames);
                                int _jspx_eval_tiles_005fput_005f2 = _jspx_th_tiles_005fput_005f2.doStartTag();
                                if (_jspx_th_tiles_005fput_005f2
                                        .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                    _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                            .reuse(_jspx_th_tiles_005fput_005f2);
                                    return;
                                }
                                _005fjspx_005ftagPool_005ftiles_005fput_005fvalue_005fname_005fnobody
                                        .reuse(_jspx_th_tiles_005fput_005f2);
                                out.write("\r\n");
                                out.write("\t\t");
                                int evalDoAfterBody = _jspx_th_tiles_005finsert_005f0.doAfterBody();
                                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                    break;
                            } while (true);
                        }
                        if (_jspx_th_tiles_005finsert_005f0
                                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            _005fjspx_005ftagPool_005ftiles_005finsert_005fpage_005fflush
                                    .reuse(_jspx_th_tiles_005finsert_005f0);
                            return;
                        }
                        _005fjspx_005ftagPool_005ftiles_005finsert_005fpage_005fflush
                                .reuse(_jspx_th_tiles_005finsert_005f0);
                        out.write("\r\n");
                        out.write("\t\t");

                        break;
                    } else
                        continue;
                } else if (form_field instanceof StrutsFormFieldsGroupDelimiter) {
                    if (index > 0 && previous_fieldset) {
                        out.write("\r\n");
                        out.write("\t\t\r\n");
                        out.write("\t\t\t\t</fieldset>\r\n");
                        out.write("\r\n");
                        out.write("\t\t\t\t<fieldset class=\"");
                        out.print(form_field.getColumn() != null ? form_field.getColumn() : "inline-labels");
                        out.write("\">\r\n");
                        out.write("\t\t\t\t\t<legend>\r\n");
                        out.write("\t\t\t\t\t");
                        out.print(LanguageUtil.get(pageContext,
                                ((StrutsFormFieldsGroupDelimiter) form_field).getGroupNameKey()));
                        out.write("\r\n");
                        out.write("\t\t\t\t</legend>\r\n");
                        out.write("\t\t\r\n");
                        out.write("\t\t\t");
                    } else {
                        out.write("\r\n");
                        out.write("\t\t\r\n");
                        out.write("\t\t\t\t<fieldset class=\"");
                        out.print(form_field.getColumn() != null ? form_field.getColumn() : "inline-labels");
                        out.write("\">\r\n");
                        out.write("\t\t\t\t\t<legend>\r\n");
                        out.write("\t\t\t\t\t");
                        out.print(LanguageUtil.get(pageContext,
                                ((StrutsFormFieldsGroupDelimiter) form_field).getGroupNameKey()));
                        out.write("\r\n");
                        out.write("\t\t\t\t</legend>\r\n");
                        out.write("\t\t\r\n");
                        out.write("\t\t\t");
                    }
                    out.write("\r\n");
                    out.write("\t\t\t\r\n");
                    out.write("\t\t\t");
                    previous_fieldset = true;
                } else {
                    formFieldName = form_field.getFormFieldName();
                    formFieldKey = form_field.getFormFieldKey();
                    formFieldType = form_field.getFormFieldType();
                    fieldDateFormat = form_field.getDateFormat();
                    if (fieldDateFormat == null || fieldDateFormat.equals(""))
                        fieldDateFormat = CommonDefs.DATE_FORMAT_JSCRIPT;
                    hidden = form_field.isHidden();
                    readonly = form_field.isReadonly();
                    required = form_field.isRequired();
                    collectionName = form_field.getCollectionName();
                    collectionAttrName = form_field.getCollectionAttrName();
                    collectionProperty = form_field.getCollectionProperty();
                    collectionLabel = form_field.getCollectionLabel();
                    field_size = form_field.getField_size();
                    textAreaCols = form_field.getTextAreaCols();
                    textAreaRows = form_field.getTextAreaRows();
                    popupWidth = form_field.getPopupWidth();
                    popupHeight = form_field.getPopupHeight();
                    secretField = form_field.isSecretTextField();
                    helpMessage = form_field.getHelpMessage();

                    if (formFieldType.equals("select")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("     \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_select.jsp", out, true);
                        out.write("\r\n");
                        out.write("     \t");

                    }

                    else if (formFieldType.equals("text")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("     \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_text.jsp", out, true);
                        out.write("\r\n");
                        out.write("     \t");

                    }

                    else if (formFieldType.equals("date")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("     \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_date.jsp", out, true);
                        out.write("\r\n");
                        out.write("     \t");

                    }

                    else if (formFieldType.equals("textareahtml_FCK") || formFieldType.equals("textareahtml")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("     \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_textareahtml.jsp", out,
                                true);
                        out.write("\r\n");
                        out.write("     \t");

                    }

                    // Plain text area (no editor)
                    else if (formFieldType.equals("textarea")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_textarea.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("fileupload")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_fileupload.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("image")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_image.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("boolean")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_boolean.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("radio")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_radio.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("checkbox")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_checkbox.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("lookup")
                            && form_field instanceof com.ext.sql.ActionLookupField) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_lookup.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("plain_text")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_plain_text.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("link_text")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_link_text.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("browse_topics_many")
                            || formFieldType.equals("browse_topics_one")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("   \t");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_topics.jsp", out, true);
                        out.write("\r\n");
                        out.write("   \t");

                    }

                    else if (formFieldType.equals("tag_lookup")) {
                        request.setAttribute(namespace + "_STRUTS_DIV_FIELD", form_field);

                        out.write("\r\n");
                        out.write("    ");
                        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                                "/html/portlet/ext/struts_includes/forms/struts_div_tag_lookup.jsp", out, true);
                        out.write("\r\n");
                        out.write("    ");

                    }

                }
                // end big for loop
            }

            if (previous_fieldset) {

                out.write("\r\n");
                out.write("</fieldset>\r\n");
                out.write("\r\n");
            }
            out.write("\r\n");
            out.write("\r\n");
            out.write("</div>\r\n");
            out.write("\r\n");

        } catch (Exception e) {
            e.printStackTrace();
        }
        out.write('\r');
        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);
    }
}

From source file:org.apache.jsp.html.portlet.ext.struts_005fincludes.titleData_jsp.java

License:Open Source License

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

    JspFactory _jspxFactory = null;//from   ww w .  j  a v  a2 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("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\r\n");
        //  tiles:useAttribute
        org.apache.struts.taglib.tiles.UseAttributeTag _jspx_th_tiles_005fuseAttribute_005f0 = (org.apache.struts.taglib.tiles.UseAttributeTag) _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .get(org.apache.struts.taglib.tiles.UseAttributeTag.class);
        _jspx_th_tiles_005fuseAttribute_005f0.setPageContext(_jspx_page_context);
        _jspx_th_tiles_005fuseAttribute_005f0.setParent(null);
        _jspx_th_tiles_005fuseAttribute_005f0.setId("tileAttribute");
        _jspx_th_tiles_005fuseAttribute_005f0.setName("attributeName");
        _jspx_th_tiles_005fuseAttribute_005f0.setClassname("java.lang.String");
        _jspx_th_tiles_005fuseAttribute_005f0.setIgnore(true);
        int _jspx_eval_tiles_005fuseAttribute_005f0 = _jspx_th_tiles_005fuseAttribute_005f0.doStartTag();
        if (_jspx_th_tiles_005fuseAttribute_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                    .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
            return;
        }
        _005fjspx_005ftagPool_005ftiles_005fuseAttribute_005fname_005fignore_005fid_005fclassname_005fnobody
                .reuse(_jspx_th_tiles_005fuseAttribute_005f0);
        java.lang.String tileAttribute = null;
        tileAttribute = (java.lang.String) _jspx_page_context.findAttribute("tileAttribute");
        out.write('\r');
        out.write('\n');

        TitleData titleData = null;
        if (tileAttribute != null)
            titleData = (TitleData) request.getAttribute(tileAttribute);
        else
            titleData = (TitleData) request.getAttribute(((RenderResponse) request
                    .getAttribute(com.liferay.portal.kernel.util.JavaConstants.JAVAX_PORTLET_RESPONSE))
                            .getNamespace()
                    + TitleData.ATTRIBUTE);

        if (titleData != null) {

            out.write("\r\n");
            out.write("\t<table width=\"100%\" class=\"bglines\">\r\n");
            out.write("\t");

            for (int i = 0; i < titleData.displaySize(); i++) {

                out.write("\r\n");
                out.write("            <tr>\r\n");
                out.write("\t\t\t<td class=\"title_left\" >");
                out.print(LanguageUtil.get(pageContext, titleData.getDisplayKey(i).toString()));
                out.write(" : </td>\r\n");
                out.write("\t\t\t<td class=\"title_right\" >\r\n");
                out.write("\t\t\t");
                if (titleData.getDisplayValue(i) != null && titleData.getDisplayValue(i) instanceof String)
                    out.print(LanguageUtil.get(pageContext, titleData.getDisplayValue(i).toString()));
                else
                    out.print(titleData.getDisplayValue(i).toString());

                out.write("\r\n");
                out.write("            </td></tr>\r\n");
                out.write("            ");

            }

            out.write("\r\n");
            out.write("\t</table>\r\n");
            out.write("\t");

        }

    } 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.taglib.aui.legend.page_jsp.java

License:Open Source License

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

    PageContext pageContext = null;//from w w  w  .j  ava  2  s  . co  m
    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 {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

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

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

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

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

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

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

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

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

        PortletRequest portletRequest = (PortletRequest) request
                .getAttribute(JavaConstants.JAVAX_PORTLET_REQUEST);

        PortletResponse portletResponse = (PortletResponse) request
                .getAttribute(JavaConstants.JAVAX_PORTLET_RESPONSE);

        String namespace = StringPool.BLANK;

        boolean useNamespace = GetterUtil.getBoolean((String) request.getAttribute("aui:form:useNamespace"),
                true);

        if ((portletResponse != null) && useNamespace) {
            namespace = portletResponse.getNamespace();
        }

        String currentURL = PortalUtil.getCurrentURL(request);

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

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

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

        String cssClass = GetterUtil.getString((String) request.getAttribute("aui:legend:cssClass"));
        Map<String, Object> dynamicAttributes = (Map<String, Object>) request
                .getAttribute("aui:legend:dynamicAttributes");
        String label = GetterUtil.getString((String) request.getAttribute("aui:legend:label"));

        out.write("\n");
        out.write("\n");
        out.write("<legend class=\"aui-fieldset-legend\" ");
        out.print(_buildDynamicAttributes(dynamicAttributes));
        out.write("><span class=\"aui-legend ");
        out.print(cssClass);
        out.write('"');
        out.write('>');
        //  liferay-ui:message
        com.liferay.taglib.ui.MessageTag _jspx_th_liferay_002dui_005fmessage_005f0 = (com.liferay.taglib.ui.MessageTag) _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                .get(com.liferay.taglib.ui.MessageTag.class);
        _jspx_th_liferay_002dui_005fmessage_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005fmessage_005f0.setParent(null);
        // /html/taglib/aui/legend/page.jsp(25,127) name = key type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005fmessage_005f0.setKey(label);
        int _jspx_eval_liferay_002dui_005fmessage_005f0 = _jspx_th_liferay_002dui_005fmessage_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dui_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005fmessage_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                .reuse(_jspx_th_liferay_002dui_005fmessage_005f0);
        out.write("</span></legend>");
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.taglib.aui.script.page_jsp.java

License:Open Source License

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

    PageContext pageContext = null;//  ww  w  .ja va2s.  c  o m
    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 {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

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

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

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

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

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

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

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

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

        PortletRequest portletRequest = (PortletRequest) request
                .getAttribute(JavaConstants.JAVAX_PORTLET_REQUEST);

        PortletResponse portletResponse = (PortletResponse) request
                .getAttribute(JavaConstants.JAVAX_PORTLET_RESPONSE);

        String namespace = StringPool.BLANK;

        boolean useNamespace = GetterUtil.getBoolean((String) request.getAttribute("aui:form:useNamespace"),
                true);

        if ((portletResponse != null) && useNamespace) {
            namespace = portletResponse.getNamespace();
        }

        String currentURL = PortalUtil.getCurrentURL(request);

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

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

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

        ScriptData scriptData = (ScriptData) request.getAttribute(ScriptTag.class.getName());

        if (scriptData == null) {
            scriptData = (ScriptData) request.getAttribute(WebKeys.AUI_SCRIPT_DATA);

            if (scriptData != null) {
                request.removeAttribute(WebKeys.AUI_SCRIPT_DATA);
            }
        }

        out.write('\n');
        out.write('\n');
        //  c:if
        org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest
                .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
        _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
        _jspx_th_c_005fif_005f0.setParent(null);
        // /html/taglib/aui/script/page.jsp(34,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_c_005fif_005f0.setTest(scriptData != null);
        int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
        if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            do {
                out.write("\n");
                out.write("\t<script type=\"text/javascript\">\n");
                out.write("\t\t// <![CDATA[\n");
                out.write("\n");
                out.write("\t\t\t");

                StringBundler rawSB = scriptData.getRawSB();

                rawSB.writeTo(out);

                StringBundler callbackSB = scriptData.getCallbackSB();

                out.write("\n");
                out.write("\n");
                out.write("\t\t\t");
                //  c:if
                org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest
                        .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
                _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
                _jspx_th_c_005fif_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
                // /html/taglib/aui/script/page.jsp(46,3) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                _jspx_th_c_005fif_005f1.setTest(callbackSB.index() > 0);
                int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
                if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                    do {
                        out.write("\n");
                        out.write("\n");
                        out.write("\t\t\t\t");

                        Set<String> useSet = scriptData.getUseSet();

                        StringBundler useSB = new StringBundler(useSet.size() * 4);

                        for (String use : useSet) {
                            useSB.append(StringPool.APOSTROPHE);
                            useSB.append(use);
                            useSB.append(StringPool.APOSTROPHE);
                            useSB.append(StringPool.COMMA_AND_SPACE);
                        }

                        out.write("\n");
                        out.write("\n");
                        out.write("\t\t\t\tAUI().use(\n");
                        out.write("\n");
                        out.write("\t\t\t\t\t");

                        useSB.writeTo(out);

                        out.write("\n");
                        out.write("\n");
                        out.write("\t\t\t\t\tfunction(A) {\n");
                        out.write("\n");
                        out.write("\t\t\t\t\t\t");

                        callbackSB.writeTo(out);

                        out.write("\n");
                        out.write("\n");
                        out.write("\t\t\t\t\t}\n");
                        out.write("\t\t\t\t);\n");
                        out.write("\t\t\t");
                        int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
                        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                            break;
                    } while (true);
                }
                if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
                    return;
                }
                _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
                out.write("\n");
                out.write("\t\t// ]]>\n");
                out.write("\t</script>\n");
                int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
        }
        if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}