Example usage for javax.servlet.jsp PageContext getServletContext

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

Introduction

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

Prototype


abstract public ServletContext getServletContext();

Source Link

Document

The ServletContext instance.

Usage

From source file:org.apache.jsp.html.taglib.ui.toggle_005farea.start_jsp.java

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

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

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

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

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

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

        out.write('\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 id = (String) request.getAttribute("liferay-ui:toggle-area:id");
        String showImage = (String) request.getAttribute("liferay-ui:toggle-area:showImage");
        String hideImage = (String) request.getAttribute("liferay-ui:toggle-area:hideImage");
        String showMessage = (String) request.getAttribute("liferay-ui:toggle-area:showMessage");
        String hideMessage = (String) request.getAttribute("liferay-ui:toggle-area:hideMessage");
        boolean defaultShowContent = GetterUtil
                .getBoolean((String) request.getAttribute("liferay-ui:toggle-area:defaultShowContent"));
        String stateVar = (String) request.getAttribute("liferay-ui:toggle-area:stateVar");
        String align = (String) request.getAttribute("liferay-ui:toggle-area:align");

        out.write("\n");
        out.write("\n");
        out.write("<div style=\"float: ");
        out.print(align);
        out.write("\">\n");
        out.write("\t");
        //  liferay-ui:toggle
        com.liferay.taglib.ui.ToggleTag _jspx_th_liferay_002dui_005ftoggle_005f0 = (com.liferay.taglib.ui.ToggleTag) _005fjspx_005ftagPool_005fliferay_002dui_005ftoggle_0026_005fstateVar_005fshowMessage_005fshowImage_005fid_005fhideMessage_005fhideImage_005fdefaultShowContent_005fnobody
                .get(com.liferay.taglib.ui.ToggleTag.class);
        _jspx_th_liferay_002dui_005ftoggle_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005ftoggle_005f0.setParent(null);
        // /html/taglib/ui/toggle_area/start.jsp(20,1) name = id type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftoggle_005f0.setId(id);
        // /html/taglib/ui/toggle_area/start.jsp(20,1) name = showImage type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftoggle_005f0.setShowImage(showImage);
        // /html/taglib/ui/toggle_area/start.jsp(20,1) name = hideImage type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftoggle_005f0.setHideImage(hideImage);
        // /html/taglib/ui/toggle_area/start.jsp(20,1) name = showMessage type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftoggle_005f0.setShowMessage(showMessage);
        // /html/taglib/ui/toggle_area/start.jsp(20,1) name = hideMessage type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftoggle_005f0.setHideMessage(hideMessage);
        // /html/taglib/ui/toggle_area/start.jsp(20,1) name = defaultShowContent type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftoggle_005f0.setDefaultShowContent(defaultShowContent);
        // /html/taglib/ui/toggle_area/start.jsp(20,1) name = stateVar type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005ftoggle_005f0.setStateVar(stateVar);
        int _jspx_eval_liferay_002dui_005ftoggle_005f0 = _jspx_th_liferay_002dui_005ftoggle_005f0.doStartTag();
        if (_jspx_th_liferay_002dui_005ftoggle_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005ftoggle_0026_005fstateVar_005fshowMessage_005fshowImage_005fid_005fhideMessage_005fhideImage_005fdefaultShowContent_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005ftoggle_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dui_005ftoggle_0026_005fstateVar_005fshowMessage_005fshowImage_005fid_005fhideMessage_005fhideImage_005fdefaultShowContent_005fnobody
                .reuse(_jspx_th_liferay_002dui_005ftoggle_005f0);
        out.write("\n");
        out.write("</div>\n");
        out.write("\n");

        String clickValue = SessionClicks.get(request, id, null);

        if (clickValue == null) {
            if (defaultShowContent) {
                clickValue = "block";
            } else {
                clickValue = "none";
            }
        } else if (clickValue.equals(StringPool.BLANK)) {
            clickValue = "block";
        }

        out.write("\n");
        out.write("\n");
        out.write("<div id=\"");
        out.print(id);
        out.write("\" style=\"display: ");
        out.print(clickValue);
        out.write(';');
        out.write('"');
        out.write('>');
    } 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.jsp.SchedulerAdmin_jsp.java

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

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {/*from w  w w .j av a 2s .co  m*/
        response.setContentType("text/html");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

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

        /*
        * Copyright 2006 Pentaho Corporation.  All rights reserved. 
        * This software was developed by Pentaho Corporation and is provided under the terms 
        * of the Mozilla Public License, Version 1.1, or any later version. You may not use 
        * this file except in compliance with the license. If you need a copy of the license, 
        * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho 
        * BI Platform.  The Initial Developer is Pentaho Corporation.
        *
        * Software distributed under the Mozilla Public License is distributed on an "AS IS" 
        * basis, WITHOUT WARRANTY OF ANY KIND, either express or  implied. Please refer to 
        * the license for the specific language governing your rights and limitations.
        */
        response.setCharacterEncoding(LocaleHelper.getSystemEncoding());
        String baseUrl = PentahoSystem.getApplicationContext().getBaseUrl();

        IPentahoSession userSession = PentahoHttpSessionHelper.getPentahoSession(request);
        HttpRequestParameterProvider requestParameters = new HttpRequestParameterProvider(request);
        HttpSessionParameterProvider sessionParameters = new HttpSessionParameterProvider(userSession);
        String thisUrl = baseUrl + "./SchedulerAdmin?"; //$NON-NLS-1$

        String mimeType = request.getParameter("requestedMimeType");
        if (StringUtils.isEmpty(mimeType)) {
            mimeType = "text/html";
        }

        SimpleUrlFactory urlFactory = new SimpleUrlFactory(thisUrl);
        ArrayList messages = new ArrayList();

        SchedulerAdminUIComponent admin = new SchedulerAdminUIComponent(urlFactory, messages); //$NON-NLS-1$

        admin.validate(userSession, null);

        admin.setParameterProvider(HttpRequestParameterProvider.SCOPE_REQUEST, requestParameters); //$NON-NLS-1$
        admin.setParameterProvider(HttpSessionParameterProvider.SCOPE_SESSION, sessionParameters); //$NON-NLS-1$

        String content = admin.getContent(mimeType);
        if ("text/html".equals(mimeType)) {
            if (content == null) {
                StringBuffer buffer = new StringBuffer();
                PentahoSystem.get(IMessageFormatter.class, userSession).formatErrorMessage("text/html", //$NON-NLS-1$
                        Messages.getErrorString("SCHEDULER_ADMIN.ERROR_0001_DISPLAY_ERROR"), messages, buffer); //$NON-NLS-1$
                content = buffer.toString();
            }

            String intro = "";
            String footer = "";
            IUITemplater templater = PentahoSystem.get(IUITemplater.class, userSession);
            if (templater != null) {
                String sections[] = templater.breakTemplate("template.html", "", userSession); //$NON-NLS-1$ //$NON-NLS-2$
                if (sections != null && sections.length > 0) {
                    intro = sections[0];
                }
                if (sections != null && sections.length > 1) {
                    footer = sections[1];
                }
            } else {
                intro = Messages.getString("UI.ERROR_0002_BAD_TEMPLATE_OBJECT");
            }

            // Content had $ signs - the regex stuff messes up with $ and \ so...
            content = content.replaceAll("\\\\", "\\\\\\\\");
            content = content.replaceAll("\\$", "\\\\\\$");

            out.print(intro);
            out.write("\r\n");
            out.write("\t\t");
            out.print(content);
            out.write("\r\n");
            out.write("\t\t");
            out.print(footer);

        } else {
            if (content == null) {
                content = "<error msg='" + Messages.getErrorString("SCHEDULER_ADMIN.ERROR_0001_DISPLAY_ERROR")
                        + "'></error>";
            }

            out.print(content);

        }

    } catch (java.lang.Throwable t) {
        if (!(t instanceof javax.servlet.jsp.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);
            else
                throw new ServletException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.registration_jsp.java

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

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {/*from w  w  w  .  jav  a2s  .  com*/
        response.setContentType("text/html");
        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) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
        *
        * WSO2 Inc. licenses this file to you under the Apache License,
        * Version 2.0 (the "License"); you may not use this file except
        * in compliance with the License.
        * You may obtain a copy of the License at
        *
        * http://www.apache.org/licenses/LICENSE-2.0
        *
        * Unless required by applicable law or agreed to in writing,
        * software distributed under the License is distributed on an
        * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
        * KIND, either express or implied. See the License for the
        * specific language governing permissions and limitations
        * under the License.
        */
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        String forwardTo;
        try {

            UserRegistrationAdminServiceClient registrationClient = new UserRegistrationAdminServiceClient();
            boolean isExistingUser = registrationClient.isUserExist(request.getParameter("reg_username"));

            if (StringUtils.equals(request.getParameter("is_validation"), "true")) {
                if (isExistingUser) {
                    out.write("User Exist");
                } else {
                    out.write("Ok");
                }
                return;
            }

            if (isExistingUser) {
                throw new Exception("User exist");
            }

            List<UserFieldDTO> fields = (List<UserFieldDTO>) session.getAttribute("fields");

            for (UserFieldDTO userFieldDTO : fields) {
                userFieldDTO.setFieldValue(request.getParameter(userFieldDTO.getFieldName()));
            }

            String username = request.getParameter("reg_username");
            char[] password = request.getParameter("reg_password").toCharArray();
            registrationClient.addUser(username, password, fields);

            forwardTo = "../dashboard/index.jag";

        } catch (Exception e) {
            String error = "An internal error occurred.";
            response.sendRedirect("create-account.jsp?sessionDataKey=" + request.getParameter("sessionDataKey")
                    + "&failedPrevious=true&errorCode=" + error);
            return;
        }

        out.write("\n");
        out.write("<html>\n");
        out.write("<head>\n");
        out.write("    <link href=\"libs/bootstrap_3.3.5/css/bootstrap.min.css\" rel=\"stylesheet\">\n");
        out.write("    <link href=\"css/Roboto.css\" rel=\"stylesheet\">\n");
        out.write("    <link href=\"css/custom-common.css\" rel=\"stylesheet\">\n");
        out.write("</head>\n");
        out.write("<body>\n");
        out.write("<div class=\"container\">\n");
        out.write("    <div id=\"infoModel\" class=\"modal fade\" role=\"dialog\">\n");
        out.write("        <div class=\"modal-dialog\">\n");
        out.write("            <div class=\"modal-content\">\n");
        out.write("                <div class=\"modal-header\">\n");
        out.write(
                "                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>\n");
        out.write("                    <h4 class=\"modal-title\">Information</h4>\n");
        out.write("                </div>\n");
        out.write("                <div class=\"modal-body\">\n");
        out.write("                    <p>User details successfully submitted</p>\n");
        out.write("                </div>\n");
        out.write("                <div class=\"modal-footer\">\n");
        out.write(
                "                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>\n");
        out.write("                </div>\n");
        out.write("            </div>\n");
        out.write("        </div>\n");
        out.write("    </div>\n");
        out.write("</div>\n");
        out.write("<script src=\"libs/jquery_1.11.3/jquery-1.11.3.js\"></script>\n");
        out.write("<script src=\"libs/bootstrap_3.3.5/js/bootstrap.min.js\"></script>\n");
        out.write("<script type=\"application/javascript\" >\n");
        out.write("    $(document).ready(function () {\n");
        out.write("        var infoModel = $(\"#infoModel\");\n");
        out.write("        infoModel.modal(\"show\");\n");
        out.write("        infoModel.on('hidden.bs.modal', function() {\n");
        out.write("            location.href = \"");
        out.print(Encode.forJavaScriptBlock(forwardTo));
        out.write("\";\n");
        out.write("        })\n");
        out.write("    });\n");
        out.write("</script>\n");
        out.write("</body>\n");
        out.write("</html>");
    } catch (java.lang.Throwable t) {
        if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    if (response.isCommitted()) {
                        out.flush();
                    } else {
                        out.clearBuffer();
                    }
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
            else
                throw new ServletException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.view.ask_jsp.java

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

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

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

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

        String contextPath = (String) request.getContextPath();
        pageContext.setAttribute("contextPath", contextPath);

        out.write("\r\n");
        out.write("\r\n");
        out.write(" ");
        out.write("\r\n");
        out.write(
                "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
        out.write("\r\n");
        out.write("<html> \r\n");
        out.write("<head> \r\n");
        out.write("    <title>ask - youxifan</title> \r\n");
        out.write(
                "    <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n");
        out.write(
                "    <script type=\"text/javascript\" src=\"http://cdn.sstatic.net/js/stub.js?v=c014461b9109\"></script>\r\n");
        out.write("    <link rel=\"stylesheet\" type=\"text/css\" href=\"");
        out.print(contextPath);
        out.write("/css/all.css\">\r\n");
        out.write("\r\n");
        out.write("</head>\r\n");
        out.write("<body class=\"questions-page\">\r\n");
        out.write("    <noscript><div id=\"noscript-padding\"></div></noscript>\r\n");
        out.write("    <div id=\"notify-container\"></div>\r\n");
        out.write("    <div id=\"overlay-header\"></div>\r\n");
        out.write("    <div id=\"custom-header\"></div>\r\n");
        out.write("\r\n");
        out.write("    <div class=\"container\">\r\n");
        out.write("        ");
        out.write("\r\n");
        out.write("\t\r\n");
        out.write("\t\r\n");
        out.write("\t\t<div id=\"header\">\r\n");
        out.write("            <div id=\"topbar\">  \r\n");
        out.write("            </div>  \r\n");
        out.write("            <div id=\"hmenus\">\r\n");
        out.write("                <div class=\"nav mainnavs\">\r\n");
        out.write("                    <ul>\r\n");
        out.write("                        <li class=\"youarehere\"><a id=\"nav-questions\" href=\"");
        out.print(contextPath);
        out.write("/s/doc\"></a></li>\r\n");
        out.write("                        <li><a id=\"nav-tags\" href=\"/tags\">Tags</a></li>\r\n");
        out.write("                        <li><a id=\"nav-users\" href=\"/users\">Users</a></li>\r\n");
        out.write("                        <li><a id=\"nav-badges\" href=\"/badges\">Badges</a></li>\r\n");
        out.write(
                "                        <li><a id=\"nav-unanswered\" href=\"/unanswered\">Unanswered</a></li>\r\n");
        out.write("                    </ul>\r\n");
        out.write("                </div>\r\n");
        out.write("                \r\n");
        out.write("            </div>\r\n");
        out.write("        </div>");
        out.write("\r\n");
        out.write("\r\n");
        out.write("\t\t<div id=\"content\">\r\n");
        out.write("\t\t\t\r\n");
        out.write("\t        <div id=\"mainbar\" class=\"ask-mainbar\">  \r\n");
        out.write("\t        \t\r\n");
        out.write("\t        \t<div class=\"subheader\">\r\n");
        out.write("\t\t\t\t\t<h1>??</h1>\r\n");
        out.write("\t\t\t\t</div> \r\n");
        out.write("\t\t\t\t\r\n");
        out.write("\t    \t\t<form id=\"post-form\" class=\"post-form\" action=\"");
        out.print(contextPath);
        out.write("/s/doc\" method=\"post\">\r\n");
        out.write("\t        \t\t<input type=\"hidden\" name=\"doctype\" value=\"1\"  />\r\n");
        out.write("\t        \t\t<label  ></label><br/>\r\n");
        out.write(
                "\t        \t\t<input id=\"title\" name=\"title\" type=\"text\" maxlength=\"300\" tabindex=\"100\" class=\"ask-title-field\" value=\"\"><br/>\r\n");
        out.write("\t        \t\t<label  ></label><br/>\r\n");
        out.write(
                "\t        \t\t<textarea id=\"wmd-input\" class=\"wmd-input\" name=\"post-text\" cols=\"92\" rows=\"15\" tabindex=\"101\">\r\n");
        out.write("\t\t\t\t\t</textarea>\r\n");
        out.write("\t        \t\t\r\n");
        out.write("\t        \t\t\r\n");
        out.write("\t        \t\t<div class=\"form-item\">\r\n");
        out.write("\t        \t\t\t<label>Tags</label>  \r\n");
        out.write(
                "\t        \t\t\t<input id=\"tagnames\" name=\"tagnames\" type=\"text\" size=\"60\" value=\"\" tabindex=\"103\">\r\n");
        out.write(
                "\t        \t\t\t<span class=\"edit-field-overlay\">at least one tag such as (c++ sql-server c), max 5 tags</span>\r\n");
        out.write("\t        \t\t</div>\r\n");
        out.write("\t        \t\t\r\n");
        out.write("\t        \t\t<div class=\"form-submit cbt\">\r\n");
        out.write(
                "\t        \t\t<input id=\"submit-button\" type=\"submit\" value=\"??\" tabindex=\"120\">\r\n");
        out.write("\t        \t\t</div>\r\n");
        out.write("\t        \t</form>\r\n");
        out.write("\t        </div> \r\n");
        out.write("\t        \r\n");
        out.write("\r\n");
        out.write("\t        \r\n");
        out.write("\t\t\t<div id=\"sidebar\" class=\"ask-sidebar\">\r\n");
        out.write("\t\t\t\t<div class=\"module\" id=\"questions-count\">\r\n");
        out.write("\t\t\t\t\t<div class=\"summarycount al\">305</div>\r\n");
        out.write("\t\t\t\t\t<p>questions</p>\r\n");
        out.write("\t\t\t\t</div>   \r\n");
        out.write("\t\t\t\t<div class=\"everyonelovesstackoverflow\" id=\"adzerk2\">\r\n");
        out.write("\t\t\t\t</div> \r\n");
        out.write("\r\n");
        out.write("\t\t\t\t<div class=\"module\" id=\"related-tags\">\r\n");
        out.write("\t\t\t\t\t<h4 id=\"h-related-tags\">Related Tags</h4>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\"><img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">42</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/c%23\" class=\"post-tag\" title=\"show questions tagged 'c#'\" rel=\"tag\">c#</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">27</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/javascript\" class=\"post-tag\" title=\"show questions tagged 'javascript'\" rel=\"tag\">javascript</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">25</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/java\" class=\"post-tag\" title=\"show questions tagged 'java'\" rel=\"tag\">java</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">24</span></span>            <br> \r\n");
        out.write("\t\t\t\t</div>\r\n");
        out.write("\t\t\t</div>\r\n");
        out.write("\r\n");
        out.write("\t\t</div>\r\n");
        out.write("    </div>\r\n");
        out.write("    <div id=\"footer\">\r\n");
        out.write("        <div class=\"footerwrap\">\r\n");
        out.write("            <div id=\"footer-menu\">\r\n");
        out.write("                <a href=\"/about\">about</a> |\r\n");
        out.write(
                "                <a href=\"/faq\">faq</a> | <a href=\"http://blog.stackexchange.com?blt=1\">blog</a> |\r\n");
        out.write("                    <a href=\"http://chat.stackoverflow.com\">chat</a> |\r\n");
        out.write("                <a href=\"http://data.stackexchange.com\">data</a> |\r\n");
        out.write(
                "                <a href=\"http://blog.stackoverflow.com/category/podcasts/\">podcast</a> |\r\n");
        out.write("                <a href=\"http://shop.stackexchange.com/\">shop</a> |\r\n");
        out.write("                <a href=\"http://stackexchange.com/legal\">legal</a>\r\n");
        out.write("                <div id=\"footer-sites\">\r\n");
        out.write("                    \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://stackoverflow.com\">stackoverflow.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://stackapps.com\">api/apps</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://careers.stackoverflow.com\">careers</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#E8272C;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://serverfault.com\">serverfault.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#00AFEF;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://superuser.com\">superuser.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#969696;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://meta.stackoverflow.com\">meta</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#46937D;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://area51.stackexchange.com\">area&nbsp;51</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#C0D0DC;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://webapps.stackexchange.com\">webapps</a>&nbsp; \r\n");
        out.write("                        <span style=\"color:#000000;font-size:140%\">&#9632;</span>\r\n");
        out.write("                </div>\r\n");
        out.write("            </div>\r\n");
        out.write("            <div id=\"footer-flair\">\r\n");
        out.write("                <a class=\"peer1\" href=\"http://www.peer1.com/stackoverflow\"></a>  \r\n");
        out.write(
                "                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n");
        out.write("                <div id=\"svnrev\">rev 2012.3.7.1488</div>\r\n");
        out.write("            </div>\r\n");
        out.write("            <div id=\"copyright\">\r\n");
        out.write("                site design / logo &copy; 2012 stack exchange inc; \r\n");
        out.write(
                "                user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n");
        out.write("            </div>\r\n");
        out.write("        </div>\r\n");
        out.write("    </div>\r\n");
        out.write("</body>\r\n");
        out.write("</html>");
    } 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.view.doclist_jsp.java

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

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

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

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

        String contextPath = (String) request.getContextPath();
        pageContext.setAttribute("contextPath", contextPath);

        out.write("\r\n");
        out.write("\r\n");
        out.write(" ");
        out.write("\r\n");
        out.write(
                "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
        out.write("\r\n");
        out.write("<html> \r\n");
        out.write("<head> \r\n");
        out.write("    <title>Bounty Questions - Stack Overflow</title> \r\n");
        out.write(
                "    <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n");
        out.write(
                "    <script type=\"text/javascript\" src=\"http://cdn.sstatic.net/js/stub.js?v=c014461b9109\"></script>\r\n");
        out.write("    <link rel=\"stylesheet\" type=\"text/css\" href=\"");
        out.print(contextPath);
        out.write("/css/all.css\">\r\n");

        String sort = (String) request.getAttribute("sort");
        if (StringUtils.isEmpty(sort)) {
            sort = "newest";
        }

        out.write("\r\n");
        out.write("</head>\r\n");
        out.write("<body class=\"questions-page\">\r\n");
        out.write("    <noscript><div id=\"noscript-padding\"></div></noscript>\r\n");
        out.write("    <div id=\"notify-container\"></div>\r\n");
        out.write("    <div id=\"overlay-header\"></div>\r\n");
        out.write("    <div id=\"custom-header\"></div>\r\n");
        out.write("\r\n");
        out.write("    <div class=\"container\">\r\n");
        out.write("        ");
        out.write("\r\n");
        out.write("\t\r\n");
        out.write("\t\r\n");
        out.write("\t\t<div id=\"header\">\r\n");
        out.write("            <div id=\"topbar\">  \r\n");
        out.write("            </div>  \r\n");
        out.write("            <div id=\"hmenus\">\r\n");
        out.write("                <div class=\"nav mainnavs\">\r\n");
        out.write("                    <ul>\r\n");
        out.write("                        <li class=\"youarehere\"><a id=\"nav-questions\" href=\"");
        out.print(contextPath);
        out.write("/s/doc\"></a></li>\r\n");
        out.write("                        <li><a id=\"nav-tags\" href=\"/tags\">Tags</a></li>\r\n");
        out.write("                        <li><a id=\"nav-users\" href=\"/users\">Users</a></li>\r\n");
        out.write("                        <li><a id=\"nav-badges\" href=\"/badges\">Badges</a></li>\r\n");
        out.write(
                "                        <li><a id=\"nav-unanswered\" href=\"/unanswered\">Unanswered</a></li>\r\n");
        out.write("                    </ul>\r\n");
        out.write("                </div>\r\n");
        out.write("                \r\n");
        out.write("            </div>\r\n");
        out.write("        </div>");
        out.write("\r\n");
        out.write("\r\n");
        out.write("        <div id=\"content\">\r\n");
        out.write("            \r\n");
        out.write("            <div id=\"mainbar\">    \r\n");
        out.write("\t\t\t\t<div class=\"subheader\">\r\n");
        out.write("\t\t\t\t\t<div id=\"tabs\">\r\n");
        out.write("<a ");
        out.print("newest".equals(sort) ? "class=\"youarehere\"" : "");
        out.write(
                "  href=\"/questions?sort=newest\" title=\"the most recently asked questions\"></a>\r\n");
        out.write("<a ");
        out.print("featured".equals(sort) ? "class=\"youarehere\"" : "");
        out.write(" href=\"/questions?sort=featured\" title=\"questions with open bounties\"></a>\r\n");
        out.write("<a ");
        out.print("unanswered".equals(sort) ? "class=\"youarehere\"" : "");
        out.write(" href=\"/questions?sort=faq\" title=\"questions with the most links\"></a>\r\n");
        out.write("<a ");
        out.print("votes".equals(sort) ? "class=\"youarehere\"" : "");
        out.write(" href=\"/questions?sort=votes\" title=\"questions with the most votes\">?</a>\r\n");
        out.write("<a ");
        out.print("active".equals(sort) ? "class=\"youarehere\"" : "");
        out.write(
                " href=\"/questions?sort=active\" title=\"questions that have recent activity\">active</a>\r\n");
        out.write("<a ");
        out.print("question".equals(sort) ? "class=\"youarehere\"" : "");
        out.write(" href=\"");
        out.print(contextPath);
        out.write("/view/ask.jsp\" title=\"??\">??</a>\r\n");
        out.write("\t\t\t\t\t</div>  \r\n");
        out.write("\t\t\t\t\t<h1 id=\"h-all-questions\"></h1> \r\n");
        out.write("\t\t\t\t\t\r\n");
        out.write("\t\t\t\t</div>   \r\n");
        out.write("\t\t\t\t\r\n");
        out.write("\t\t\t\t<div id=\"questions\">\r\n");
        //  c:forEach
        org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems
                .get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
        _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
        _jspx_th_c_005fforEach_005f0.setParent(null);
        // /view/doclist.jsp(46,0) name = items type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null
        _jspx_th_c_005fforEach_005f0
                .setItems(new org.apache.jasper.el.JspValueExpression("/view/doclist.jsp(46,0) '${doclist}'",
                        _el_expressionfactory.createValueExpression(_jspx_page_context.getELContext(),
                                "${doclist}", java.lang.Object.class))
                                        .getValue(_jspx_page_context.getELContext()));
        // /view/doclist.jsp(46,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_c_005fforEach_005f0.setVar("doc");
        int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 };
        try {
            int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
            if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                    out.write("\r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t\t<div class=\"question-summary\" id=\"question-summary-");
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.docid}", java.lang.String.class, (PageContext) _jspx_page_context, null,
                            false));
                    out.write("\">\r\n");
                    out.write("\t\t\t\t\t\t<div class=\"statscontainer\">\r\n");
                    out.write("\t\t\t\t\t\t\t<div class=\"statsarrow\"></div>\r\n");
                    out.write("\t\t\t\t\t\t\t<div class=\"stats\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t<div class=\"vote\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t<div class=\"votes\">\r\n");
                    out.write(
                            "\t\t\t\t\t\t\t\t\t\t<span class=\"vote-count-post\"><strong>6</strong></span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t<div class=\"viewcount\">votes</div>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t\t\t<div class=\"status answered\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t<strong>3</strong>answers\r\n");
                    out.write("\t\t\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t\t\t<div class=\"views\" title=\"188 views\">188 views</div>\r\n");
                    out.write("\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n");
                    out.write("\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t<div class=\"summary\">        \r\n");
                    out.write("\t\t\t\t\t\t\t<h3><a href=\"");
                    out.print(contextPath);
                    out.write("/s/doc/id/");
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.docid}", java.lang.String.class, (PageContext) _jspx_page_context, null,
                            false));
                    out.write("\" class=\"question-hyperlink\">");
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.title}", java.lang.String.class, (PageContext) _jspx_page_context, null,
                            false));
                    out.write("</a></h3>\r\n");
                    out.write("\t\t\t\t\t\t\t<div class=\"excerpt\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t");
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.content}", java.lang.String.class, (PageContext) _jspx_page_context, null,
                            false));
                    out.write("\t \r\n");
                    out.write("\t\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t\t<div class=\"tags t-android t-webview t-textview\">\r\n");
                    out.write(
                            "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\">\r\n");
                    out.write(
                            "\t\t\t\t\t\t\t\t\t<img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a> \r\n");
                    out.write(
                            "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/webview\" class=\"post-tag\" title=\"show questions tagged 'webview'\" rel=\"tag\">webview</a> \r\n");
                    out.write(
                            "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/textview\" class=\"post-tag\" title=\"show questions tagged 'textview'\" rel=\"tag\">textview</a> \r\n");
                    out.write("\r\n");
                    out.write("\t\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t\t<div class=\"started fr\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t<div class=\"user-info\"> \r\n");
                    out.write("\t\t\t\t\t\t\t\t\t<div class=\"user-gravatar32\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t<a href=\"/users/565319/richard\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t<div class=\"\"><img src=\"");
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${pageScope.contextPath}", java.lang.String.class,
                            (PageContext) _jspx_page_context, null, false));
                    out.write('/');
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.creater.imageurl}", java.lang.String.class, (PageContext) _jspx_page_context,
                            null, false));
                    out.write("\" alt=\"\" width=\"32\" height=\"32\"></div>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t</a>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t<div class=\"user-details\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t<a href=\"/users/");
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.creater.userid}", java.lang.String.class, (PageContext) _jspx_page_context,
                            null, false));
                    out.write('"');
                    out.write('>');
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.creater.username}", java.lang.String.class, (PageContext) _jspx_page_context,
                            null, false));
                    out.write("</a><br>\r\n");
                    out.write(
                            "\t\t\t\t\t\t\t\t\t\t\t<span class=\"reputation-score\" title=\"reputation score\" dir=\"ltr\">296</span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t<span title=\"1 silver badge\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badge2\"></span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badgecount\">1</span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t</span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t<span title=\"13 bronze badges\">\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badge3\"></span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badgecount\">13</span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t\t</span>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t\t\t\t\t</div>\r\n");
                    out.write(
                            "\t\t\t\t\t\t\t\t\t<div class=\"user-action-time\">asked <span title=\"\" class=\"relativetime\">");
                    out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                            "${doc.createdate}", java.lang.String.class, (PageContext) _jspx_page_context, null,
                            false));
                    out.write("</span></div>\r\n");
                    out.write("\t\t\t\t\t\t\t</div>  \r\n");
                    out.write("\t\t\t\t\t\t</div>\r\n");
                    out.write("\t\t\t\t\t</div>\r\n");
                    int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                } while (true);
            }
            if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                return;
            }
        } catch (Throwable _jspx_exception) {
            while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
                out = _jspx_page_context.popBody();
            _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
        } finally {
            _jspx_th_c_005fforEach_005f0.doFinally();
            _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0);
        }
        out.write("\r\n");
        out.write("\t\t\t\t</div>\r\n");
        out.write("\t\t\t\t<br class=\"cbt\">\r\n");
        out.write("\t\t\t\t<div class=\"page-sizer fr\">\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?sort=featured&amp;pagesize=15\" title=\"show 15 items per page\" class=\"current page-numbers\">15</a>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?sort=featured&amp;pagesize=30\" title=\"show 30 items per page\" class=\"page-numbers\">30</a>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?sort=featured&amp;pagesize=50\" title=\"show 50 items per page\" class=\"page-numbers\">50</a>\r\n");
        out.write("\t\t\t\t\t<span class=\"page-numbers desc\">per page</span>\r\n");
        out.write("\t\t\t\t</div>\r\n");
        out.write("\t\t\t\t<div class=\"pager fl\" >\r\n");
        out.write("\t\t\t\t\t<span class=\"page-numbers current\">1</span>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?page=2&amp;sort=featured\" title=\"go to page 2\"><span class=\"page-numbers\">2</span></a>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?page=3&amp;sort=featured\" title=\"go to page 3\"><span class=\"page-numbers\">3</span></a>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?page=4&amp;sort=featured\" title=\"go to page 4\"><span class=\"page-numbers\">4</span></a>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?page=5&amp;sort=featured\" title=\"go to page 5\"><span class=\"page-numbers\">5</span></a>\r\n");
        out.write("\t\t\t\t\t<span class=\"page-numbers dots\">&hellip;</span>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?page=21&amp;sort=featured\" title=\"go to page 21\"><span class=\"page-numbers\">21</span></a>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions?page=2&amp;sort=featured\" title=\"go to page 2\" rel=\"next\"><span class=\"page-numbers next\"> next</span></a>\r\n");
        out.write("\t\t\t\t</div>\r\n");
        out.write("\r\n");
        out.write("\t\t\t</div>\r\n");
        out.write("\t\t\t\r\n");
        out.write("\t\t\t\r\n");
        out.write("\t\t\t<div id=\"sidebar\">\r\n");
        out.write("\t\t\t\t<div class=\"module\" id=\"questions-count\">\r\n");
        out.write("\t\t\t\t\t<div class=\"summarycount al\">305</div>\r\n");
        out.write("\t\t\t\t\t<p>questions</p>\r\n");
        out.write("\t\t\t\t</div>   \r\n");
        out.write("\t\t\t\t<div class=\"everyonelovesstackoverflow\" id=\"adzerk2\">\r\n");
        out.write("\t\t\t\t</div> \r\n");
        out.write("\r\n");
        out.write("\t\t\t\t<div class=\"module\" id=\"related-tags\">\r\n");
        out.write("\t\t\t\t\t<h4 id=\"h-related-tags\">Related Tags</h4>\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\"><img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">42</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/c%23\" class=\"post-tag\" title=\"show questions tagged 'c#'\" rel=\"tag\">c#</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">27</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/javascript\" class=\"post-tag\" title=\"show questions tagged 'javascript'\" rel=\"tag\">javascript</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">25</span></span>            <br>\r\n");
        out.write("\t\t\t\t\r\n");
        out.write(
                "\t\t\t\t\t<a href=\"/questions/tagged/java\" class=\"post-tag\" title=\"show questions tagged 'java'\" rel=\"tag\">java</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">&times;</span>&nbsp;<span class=\"item-multiplier-count\">24</span></span>            <br> \r\n");
        out.write("\t\t\t\t</div>\r\n");
        out.write("\t\t\t</div>\r\n");
        out.write("\r\n");
        out.write("\t\t</div>\r\n");
        out.write("    </div>\r\n");
        out.write("    ");
        out.write("\t<div id=\"footer\">\r\n");
        out.write("        <div class=\"footerwrap\">\r\n");
        out.write("            <div id=\"footer-menu\">\r\n");
        out.write("                <a href=\"/about\">about</a> |\r\n");
        out.write(
                "                <a href=\"/faq\">faq</a> | <a href=\"http://blog.stackexchange.com?blt=1\">blog</a> |\r\n");
        out.write("                    <a href=\"http://chat.stackoverflow.com\">chat</a> |\r\n");
        out.write("                <a href=\"http://data.stackexchange.com\">data</a> |\r\n");
        out.write(
                "                <a href=\"http://blog.stackoverflow.com/category/podcasts/\">podcast</a> |\r\n");
        out.write("                <a href=\"http://shop.stackexchange.com/\">shop</a> |\r\n");
        out.write("                <a href=\"http://stackexchange.com/legal\">legal</a>\r\n");
        out.write("                <div id=\"footer-sites\">\r\n");
        out.write("                    \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://stackoverflow.com\">stackoverflow.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://stackapps.com\">api/apps</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#FE7A15;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://careers.stackoverflow.com\">careers</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#E8272C;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://serverfault.com\">serverfault.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#00AFEF;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://superuser.com\">superuser.com</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#969696;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://meta.stackoverflow.com\">meta</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#46937D;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://area51.stackexchange.com\">area&nbsp;51</a>&nbsp; \r\n");
        out.write(
                "                        <span style=\"color:#C0D0DC;font-size:140%\">&#9632;</span>&nbsp;<a href=\"http://webapps.stackexchange.com\">webapps</a>&nbsp; \r\n");
        out.write("                        <span style=\"color:#000000;font-size:140%\">&#9632;</span>\r\n");
        out.write("                </div>\r\n");
        out.write("            </div>\r\n");
        out.write("            <div id=\"footer-flair\">\r\n");
        out.write("                <a class=\"peer1\" href=\"http://www.peer1.com/stackoverflow\"></a>  \r\n");
        out.write(
                "                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n");
        out.write("                <div id=\"svnrev\">rev 2012.3.7.1488</div>\r\n");
        out.write("            </div>\r\n");
        out.write("            <div id=\"copyright\">\r\n");
        out.write("                site design / logo &copy; 2012 stack exchange inc; \r\n");
        out.write(
                "                user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n");
        out.write("            </div>\r\n");
        out.write("        </div>\r\n");
        out.write("    </div>");
        out.write("\r\n");
        out.write("</body>\r\n");
        out.write("</html>");
    } 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.webpage.modules.gen.genTableForm_jsp.java

public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException {
    String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method)
            && !DispatcherType.ERROR.equals(request.getDispatcherType())) {
        response.sendError(405, "JSPs only permit GET POST or HEAD");
    } else {// ww  w  .  j av a2s  .  c  o  m
        Object out = null;
        Object _jspx_out = null;
        PageContext _jspx_page_context = null;

        try {
            try {
                response.setContentType("text/html;charset=UTF-8");
                PageContext pageContext = _jspxFactory.getPageContext(this, request, response, (String) null,
                        true, 8192, true);
                _jspx_page_context = pageContext;
                pageContext.getServletContext();
                pageContext.getServletConfig();
                pageContext.getSession();
                out = pageContext.getOut();
                ((JspWriter) out).write(10);
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                if (this._jspx_meth_c_005fset_005f0(pageContext)) {
                    return;
                }

                ((JspWriter) out).write(10);
                if (this._jspx_meth_c_005fset_005f1(pageContext)) {
                    return;
                }

                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("<html>\n");
                ((JspWriter) out).write("<head>\n");
                ((JspWriter) out).write("\t<title>??</title>\n");
                ((JspWriter) out).write("\t<meta name=\"decorator\" content=\"default\"/>\n");
                ((JspWriter) out).write("\t<script type=\"text/javascript\" src=\"");
                ((JspWriter) out).write((String) PageContextImpl.proprietaryEvaluate("${ctxStatic}",
                        String.class, pageContext, (ProtectedFunctionMapper) null));
                ((JspWriter) out).write("/jquery-combox/jquery.combox.js\"></script>\n");
                ((JspWriter) out).write("\t<link rel=\"stylesheet\" href=\"");
                ((JspWriter) out).write((String) PageContextImpl.proprietaryEvaluate("${ctxStatic}",
                        String.class, pageContext, (ProtectedFunctionMapper) null));
                ((JspWriter) out).write("/jquery-combox/styles/style.css\" type=\"text/css\"/>\n");
                ((JspWriter) out).write("\t<script type=\"text/javascript\">\n");
                ((JspWriter) out).write(
                        "\tvar validateForm;function doSubmit(){return validateForm.form()?($(\"#inputForm\").submit(),!0):!1};$(document).ready(function(){validateForm=$(\"#inputForm\").validate({ignore:\"\",submitHandler:function(a){loading(\"\\u6b63\\u5728\\u63d0\\u4ea4\\uff0c\\u8bf7\\u7a0d\\u7b49...\");$(\"input[type=checkbox]\").each(function(){$(this).after(\'<input type=\"hidden\" name=\"\'+$(this).attr(\"name\")+\'\" value=\"\'+($(this).attr(\"checked\")?\"1\":\"0\")+\'\"/>\');$(this).attr(\"name\",\"_\"+$(this).attr(\"name\"))});a.submit()},errorContainer:\"#messageBox\",errorPlacement:function(a,b){$(\"#messageBox\").text(\"\\u8f93\\u5165\\u6709\\u8bef\\uff0c\\u8bf7\\u5148\\u66f4\\u6b63\\u3002\");b.is(\":checkbox\")||b.is(\":radio\")||b.parent().is(\".input-append\")?a.appendTo(b.parent().parent()):a.insertAfter(b)}});resetColumnNo();$(\"#tableType\").change(function(){\"3\"==$(\"#tableType\").val()?addForTreeTable():removeForTreeTable()});var b,c;$(\"#contentTable1\").tableDnD({onDragClass:\"myDragClass\",onDrop:function(a,d){c=$(d).index();var f=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+c+\")\"),e=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+b+\")\");b<c?e.insertAfter(f):e.insertBefore(f);f=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+c+\")\");e=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+b+\")\");b<c?e.insertAfter(f):e.insertBefore(f);f=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+c+\")\");e=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+b+\")\");b<c?e.insertAfter(f):e.insertBefore(f);resetColumnNo()},onDragStart:function(a,c){b=$(c).index()}})});function resetColumnNo(){$(\"#tab-4 #contentTable4 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)});$(this).find(\"input[name*=comments]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)})});$(\"#tab-3 #contentTable3 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)});$(this).find(\"input[name*=comments]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)})});$(\"#tab-2 #contentTable2 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)});$(this).find(\"input[name*=comments]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)})});$(\"#tab-1 #contentTable1 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").change(function(){var a=\"page-\"+$(this).attr(\"name\");$(\"#tab-2 #contentTable2 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-3 #contentTable3 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-4 #contentTable4 tbody tr input[name=\'\"+a+\"\']\").val($(this).val())});$(this).find(\"input[name*=comments]\").change(function(){var a=\"page-\"+$(this).attr(\"name\");$(\"#tab-2 #contentTable2 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-3 #contentTable3 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-4 #contentTable4 tbody tr input[name=\'\"+a+\"\']\").val($(this).val())})});$(\"#contentTable1 tbody tr span[name*=jdbcType]\").combox({datas:\"varchar(64) nvarchar(64) integer double datetime longblob longtext\".split(\" \")});$(\"#contentTable2 tbody tr select[name*=javaType]\").change(function(){var b=$(this).children(\"option:selected\").val(),c=$(this);if(\"Custom\"==b||\"newadd\"==$(this).children(\"option:selected\").attr(\"class\"))top.layer.open({type:1,title:\"\\u8f93\\u5165\\u81ea\\u5b9a\\u4e49java\\u5bf9\\u8c61\",area:[\"600px\",\"360px\"],shadeClose:!0,content:\'<div class=\"wrapper wrapper-content\"><div class=\"col-md-12\"><div class=\"form-group\"> <label class=\"col-sm-3 control-label\">\\u5305\\u540d\\uff1a</label> <div class=\"col-sm-9\"> <input type=\"text\" id=\"packagePath\" name=\"\" class=\"form-control required\" placeholder=\"\\u8bf7\\u8f93\\u5165\\u81ea\\u5b9a\\u4e49\\u5bf9\\u8c61\\u6240\\u5728\\u7684\\u5305\\u8def\\u5f84\"> <span class=\"help-block m-b-none\">\\u5fc5\\u987b\\u662f\\u5b58\\u5728\\u7684package</span> </div> </div> <div class=\"form-group\"> <label class=\"col-sm-3 control-label\">\\u7c7b\\u540d\\uff1a</label> <div class=\"col-sm-9\"> <input type=\"text\" id=\"className\" name=\"\" class=\"form-control required\" placeholder=\"\\u8bf7\\u8f93\\u5165\\u81ea\\u5b9a\\u4e49\\u5bf9\\u8c61\\u7684\\u7c7b\\u540d\"> <span class=\"help-block m-b-none\">\\u5fc5\\u987b\\u662f\\u5b58\\u5728\\u7684class\\u5bf9\\u8c61</span> </div> </div></div></div>\',btn:[\"\\u786e\\u5b9a\",\"\\u5173\\u95ed\"],yes:function(a,b){var f=top.$(\"#packagePath\").val(),e=top.$(\"#className\").val(),g=f+\".\"+e;top.$(\"<option>\").val(g).text(e);\"\"==e.trim()||\"\"==f.trim()?top.layer.alert(\"\\u5305\\u540d\\u548c\\u7c7b\\u540d\\u90fd\\u4e0d\\u5141\\u8bb8\\u4e3a\\u7a7a!\",{icon:0}):(c.children(\"option:selected\").text(e),c.children(\"option:selected\").val(g),c.children(\"option:selected\").attr(\"class\",\"newadd\"),top.layer.close(a))},cancel:function(a){}}),\"Custom\"!=b&&\"newadd\"==$(this).children(\"option:selected\").attr(\"class\")&&(top.$(\"#packagePath\").val($(this).children(\"option:selected\").val().substring(0,$(this).children(\"option:selected\").val().lastIndexOf(\".\"))),top.$(\"#className\").val($(this).children(\"option:selected\").text()))})};function addColumn(){var b=$(\"#template1\").clone();b.removeAttr(\"style\");b.removeAttr(\"id\");var c=$(\"#template2\").clone();c.removeAttr(\"style\");c.removeAttr(\"id\");var a=$(\"#template3\").clone();a.removeAttr(\"style\");a.removeAttr(\"id\");var d=$(\"#template4\").clone();d.removeAttr(\"style\");d.removeAttr(\"id\");$(\"#tab-1 #contentTable1 tbody\").append(b);$(\"#tab-2 #contentTable2 tbody\").append(c);$(\"#tab-3 #contentTable3 tbody\").append(a);$(\"#tab-4 #contentTable4 tbody\").append(d);b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});resetColumnNo();$(\"#contentTable1\").tableDnD({onDragClass:\"myDragClass\",onDrop:function(a,b){toIndex=$(b).index();var c=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+toIndex+\")\"),d=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+fromIndex+\")\");fromIndex<toIndex?d.insertAfter(c):d.insertBefore(c);c=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+toIndex+\")\");d=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+fromIndex+\")\");fromIndex<toIndex?d.insertAfter(c):d.insertBefore(c);c=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+toIndex+\")\");d=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+fromIndex+\")\");fromIndex<toIndex?d.insertAfter(c):d.insertBefore(c);resetColumnNo()},onDragStart:function(a,b){fromIndex=$(b).index()}});return!1};function removeForTreeTable(){$(\"#tab-1 #contentTable1 tbody\").find(\"#tree_11,#tree_12,#tree_13,#tree_14\").remove();$(\"#tab-2 #contentTable2 tbody\").find(\"#tree_21,#tree_22,#tree_23,#tree_24\").remove();$(\"#tab-3 #contentTable3 tbody\").find(\"#tree_31,#tree_32,#tree_33,#tree_34\").remove();$(\"#tab-4 #contentTable4 tbody\").find(\"#tree_41,#tree_42,#tree_43,#tree_44\").remove();resetColumnNo();return!1};function addForTreeTable(){if(!$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=parent_id]\").val()){var b=$(\"#template1\").clone();b.removeAttr(\"style\");b.attr(\"id\",\"tree_11\");b.find(\"input[name*=name]\").val(\"parent_id\");b.find(\"input[name*=comments]\").val(\"\\u7236\\u7ea7\\u7f16\\u53f7\");b.find(\"span[name*=jdbcType]\").val(\"varchar(64)\");var c=$(\"#template2\").clone();c.removeAttr(\"style\");c.attr(\"id\",\"tree_21\");c.find(\"input[name*=name]\").val(\"parent_id\");c.find(\"select[name*=javaType]\").val(\"This\");c.find(\"input[name*=javaField]\").val(\"parent.id|name\");c.find(\"input[name*=isList]\").removeAttr(\"checked\");c.find(\"select[name*=showType]\").val(\"treeselect\");var a=$(\"#template3\").clone();a.removeAttr(\"style\");a.attr(\"id\",\"tree_31\");a.find(\"input[name*=name]\").val(\"parent_id\");var d=$(\"#template4\").clone();d.removeAttr(\"style\");d.attr(\"id\",\"tree_41\");d.find(\"input[name*=name]\").val(\"parent_id\");d.find(\"input[name*=isNull]\").removeAttr(\"checked\");$(\"#tab-1 #contentTable1 tbody\").append(b);$(\"#tab-2 #contentTable2 tbody\").append(c);$(\"#tab-3 #contentTable3 tbody\").append(a);$(\"#tab-4 #contentTable4 tbody\").append(d);b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"})};$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=parent_ids]\").val()||(b=$(\"#template1\").clone(),b.removeAttr(\"style\"),b.attr(\"id\",\"tree_12\"),b.find(\"input[name*=name]\").val(\"parent_ids\"),b.find(\"input[name*=comments]\").val(\"\\u6240\\u6709\\u7236\\u7ea7\\u7f16\\u53f7\"),b.find(\"span[name*=jdbcType]\").val(\"varchar(2000)\"),c=$(\"#template2\").clone(),c.removeAttr(\"style\"),c.attr(\"id\",\"tree_22\"),c.find(\"input[name*=name]\").val(\"parent_ids\"),c.find(\"select[name*=javaType]\").val(\"String\"),c.find(\"input[name*=javaField]\").val(\"parentIds\"),c.find(\"select[name*=queryType]\").val(\"like\"),c.find(\"input[name*=isList]\").removeAttr(\"checked\"),a=$(\"#template3\").clone(),a.removeAttr(\"style\"),a.attr(\"id\",\"tree_32\"),a.find(\"input[name*=name]\").val(\"parent_ids\"),d=$(\"#template4\").clone(),d.removeAttr(\"style\"),d.attr(\"id\",\"tree_42\"),d.find(\"input[name*=name]\").val(\"parent_ids\"),d.find(\"input[name*=isNull]\").removeAttr(\"checked\"),$(\"#tab-1 #contentTable1 tbody\").append(b),$(\"#tab-2 #contentTable2 tbody\").append(c),$(\"#tab-3 #contentTable3 tbody\").append(a),$(\"#tab-4 #contentTable4 tbody\").append(d),b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}));$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=name]\").val()||(b=$(\"#template1\").clone(),b.removeAttr(\"style\"),b.attr(\"id\",\"tree_13\"),b.find(\"input[name*=name]\").val(\"name\"),b.find(\"input[name*=comments]\").val(\"\\u540d\\u79f0\"),b.find(\"span[name*=jdbcType]\").val(\"varchar(100)\"),c=$(\"#template2\").clone(),c.removeAttr(\"style\"),c.attr(\"id\",\"tree_23\"),c.find(\"input[name*=name]\").val(\"name\"),c.find(\"select[name*=javaType]\").val(\"String\"),c.find(\"input[name*=javaField]\").val(\"name\"),c.find(\"input[name*=isQuery]\").attr(\"checked\",\"checked\"),c.find(\"select[name*=queryType]\").val(\"like\"),a=$(\"#template3\").clone(),a.removeAttr(\"style\"),a.attr(\"id\",\"tree_33\"),a.find(\"input[name*=name]\").val(\"name\"),d=$(\"#template4\").clone(),d.removeAttr(\"style\"),d.attr(\"id\",\"tree_43\"),d.find(\"input[name*=name]\").val(\"name\"),d.find(\"input[name*=isNull]\").removeAttr(\"checked\"),$(\"#tab-1 #contentTable1 tbody\").append(b),$(\"#tab-2 #contentTable2 tbody\").append(c),$(\"#tab-3 #contentTable3 tbody\").append(a),$(\"#tab-4 #contentTable4 tbody\").append(d),b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}));$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=sort]\").val()||(b=$(\"#template1\").clone(),b.removeAttr(\"style\"),b.attr(\"id\",\"tree_14\"),b.find(\"input[name*=name]\").val(\"sort\"),b.find(\"input[name*=comments]\").val(\"\\u6392\\u5e8f\"),b.find(\"span[name*=jdbcType]\").val(\"decimal(10,0)\"),c=$(\"#template2\").clone(),c.removeAttr(\"style\"),c.attr(\"id\",\"tree_24\"),c.find(\"input[name*=name]\").val(\"sort\"),c.find(\"select[name*=javaType]\").val(\"Integer\"),c.find(\"input[name*=javaField]\").val(\"sort\"),c.find(\"input[name*=isList]\").removeAttr(\"checked\"),a=$(\"#template3\").clone(),a.removeAttr(\"style\"),a.attr(\"id\",\"tree_34\"),a.find(\"input[name*=name]\").val(\"sort\"),d=$(\"#template4\").clone(),d.removeAttr(\"style\"),d.attr(\"id\",\"tree_44\"),d.find(\"input[name*=name]\").val(\"sort\"),d.find(\"input[name*=isNull]\").removeAttr(\"checked\"),$(\"#tab-1 #contentTable1 tbody\").append(b),$(\"#tab-2 #contentTable2 tbody\").append(c),$(\"#tab-3 #contentTable3 tbody\").append(a),$(\"#tab-4 #contentTable4 tbody\").append(d),b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}));resetColumnNo();return!1};function delColumn(){$(\"input[name=\'ck\']:checked\").closest(\"tr\").each(function(){var b=$(this).find(\"input[name*=name]\").attr(\"name\");$(this).remove();$(\"#tab-2 #contentTable2 tbody tr input[name=\'page-\"+b+\"\']\").closest(\"tr\").remove();$(\"#tab-3 #contentTable3 tbody tr input[name=\'page-\"+b+\"\']\").closest(\"tr\").remove();$(\"#tab-4 #contentTable4 tbody tr input[name=\'page-\"+b+\"\']\").closest(\"tr\").remove()});resetColumnNo();return!1};\t\t\n");
                ((JspWriter) out).write("\t</script>\n");
                ((JspWriter) out).write("</head>\n");
                ((JspWriter) out).write("<body>\n");
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\t");
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write(32);
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\t\t\n");
                ((JspWriter) out).write("\t\t");
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write(10);
                ((JspWriter) out).write(9);
                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\t\n");
                ((JspWriter) out).write("\t\n");
                ((JspWriter) out).write("\t");
                String t = this.getConfig("username");
                this.getConfig("license");
                GenTemplate template;
                if (request.getSession().getAttribute("template1") == null) {
                    template = this.getGenTemplate(GenUtils.computer, t, request.getLocalAddr());
                    request.getSession().setAttribute("template1", template);
                } else {
                    template = (GenTemplate) request.getSession().getAttribute("template1");
                }

                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\t\t\n");
                ((JspWriter) out).write("\t\t");
                if (!template.getName().equals("1")) {
                    ((JspWriter) out).write("<!-- ? -->\n");
                    ((JspWriter) out).write("\t<div class=\"wrapper wrapper-content\">\n");
                    ((JspWriter) out).write("\t\n");
                    ((JspWriter) out).write("\t<table style=\"display:none\">\n");
                    ((JspWriter) out).write("\t\t<tr id=\"template1\" style=\"display:none\">\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"hidden\" name=\"columnList[0].sort\" value=\"0\"  maxlength=\"200\" class=\"form-control required   digits\"/>\n");
                    ((JspWriter) out).write("\t\t\t\t\t<label>0</label>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"hidden\" class=\"form-control\"  name=\"columnList[0].isInsert\" value=\"1\" />\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"hidden\" class=\"form-control\"  name=\"columnList[0].isEdit\" value=\"1\"  />\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control  \" name=\"ck\" value=\"1\" />\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control required\" name=\"columnList[0].name\" value=\"\"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control required\" name=\"columnList[0].comments\" value=\"\" maxlength=\"200\" class=\"required\" />\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<span  name=\"template_columnList[0].jdbcType\" class=\"required\" value=\"varchar(64)\"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control\" name=\"columnList[0].isPk\" value=\"1\"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t</tr>\n");
                    ((JspWriter) out).write("\t\t\t<tr id=\"template2\" style=\"display:none\">\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control\" readOnly=\"readonly\" name=\"page-columnList[0].name\" value=\"\"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control\" name=\"page-columnList[0].comments\" value=\"\" maxlength=\"200\" readonly=\"readonly\" />\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<select name=\"columnList[0].javaType\" class=\"form-control required m-b\">\n");
                    ((JspWriter) out).write("\t\t\t\t\t\t");
                    if (this._jspx_meth_c_005fforEach_005f0(pageContext)) {
                        return;
                    }

                    ((JspWriter) out).write("\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t\t\t<option value=\"Custom\"  class=\"newadd\" ></option>\n");
                    ((JspWriter) out).write("\t\t\t\t\t</select>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].javaField\" value=\"\" maxlength=\"200\" class=\"form-control required \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control  \" name=\"columnList[0].isForm\" value=\"1\" checked/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control  \" name=\"columnList[0].isList\" value=\"1\" checked/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control  \" name=\"columnList[0].isQuery\" value=\"1\"  />\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<select name=\"columnList[0].queryType\" class=\"form-control required  m-b\">\n");
                    ((JspWriter) out).write("\t\t\t\t\t\t");
                    if (this._jspx_meth_c_005fforEach_005f1(pageContext)) {
                        return;
                    }

                    ((JspWriter) out).write("\n");
                    ((JspWriter) out).write("\t\t\t\t\t</select>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<select name=\"columnList[0].showType\" class=\"form-control required  m-b\">\n");
                    ((JspWriter) out).write("\t\t\t\t\t\t");
                    if (this._jspx_meth_c_005fforEach_005f2(pageContext)) {
                        return;
                    }

                    ((JspWriter) out).write("\n");
                    ((JspWriter) out).write("\t\t\t\t\t</select>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out)
                            .write("\t\t\t\t\t<input type=\"text\" name=\"columnList[0].dictType\" value=\"");
                    ((JspWriter) out).write((String) PageContextImpl.proprietaryEvaluate("${column.dictType}",
                            String.class, pageContext, (ProtectedFunctionMapper) null));
                    ((JspWriter) out).write("\" maxlength=\"200\" class=\"form-control   \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t</tr>\n");
                    ((JspWriter) out).write("\t\t\t\n");
                    ((JspWriter) out).write("\t\t\t<tr id=\"template3\" style=\"display:none\">\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control\" readOnly=\"readonly\" name=\"page-columnList[0].name\" value=\"\"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control\" name=\"page-columnList[0].comments\" value=\"\" maxlength=\"200\" readonly=\"readonly\" />\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].tableName\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].fieldLabels\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].fieldKeys\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].searchLabel\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].searchKey\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t\n");
                    ((JspWriter) out).write("\t\t\t</tr>\n");
                    ((JspWriter) out).write("\t\t\t\n");
                    ((JspWriter) out).write("\t\t\t<tr id=\"template4\" style=\"display:none\">\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control\" readOnly=\"readonly\" name=\"page-columnList[0].name\" value=\"\"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" class=\"form-control\" name=\"page-columnList[0].comments\" value=\"\" maxlength=\"200\" readonly=\"readonly\" />\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control \" name=\"columnList[0].isNull\" value=\"1\" checked/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<select name=\"columnList[0].validateType\" class=\"form-control  m-b\">\n");
                    ((JspWriter) out).write("\t\t\t\t\t\t");
                    if (this._jspx_meth_c_005fforEach_005f3(pageContext)) {
                        return;
                    }

                    ((JspWriter) out).write("\n");
                    ((JspWriter) out).write("\t\t\t\t\t</select>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].minLength\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].maxLength\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].minValue\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t<td>\n");
                    ((JspWriter) out).write(
                            "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].maxValue\" value=\"\" maxlength=\"200\" class=\"form-control  \"/>\n");
                    ((JspWriter) out).write("\t\t\t\t</td>\n");
                    ((JspWriter) out).write("\t\t\t\t\n");
                    ((JspWriter) out).write("\t\t\t</tr>\n");
                    ((JspWriter) out).write("\t\n");
                    ((JspWriter) out).write("\t\n");
                    ((JspWriter) out).write("\t</table>\n");
                    ((JspWriter) out).write("\t\t\n");
                    ((JspWriter) out).write("\t\t\t<!--  -->\n");
                    ((JspWriter) out).write("\t\t\t");
                    FormTag _jspx_th_form_005fform_005f0 = (FormTag) this._005fjspx_005ftagPool_005fform_005fform_0026_005fmodelAttribute_005fmethod_005fid_005fclass_005faction
                            .get(FormTag.class);

                    try {
                        _jspx_th_form_005fform_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_form_005fform_005f0.setParent((Tag) null);
                        _jspx_th_form_005fform_005f0.setId("inputForm");
                        _jspx_th_form_005fform_005f0.setModelAttribute("genTable");
                        _jspx_th_form_005fform_005f0.setAction(
                                (String) PageContextImpl.proprietaryEvaluate("${ctx}/gen/genTable/save",
                                        String.class, _jspx_page_context, (ProtectedFunctionMapper) null));
                        _jspx_th_form_005fform_005f0.setMethod("post");
                        _jspx_th_form_005fform_005f0.setDynamicAttribute((String) null, "class",
                                "form-horizontal");
                        int[] _jspx_push_body_count_form_005fform_005f0 = new int[1];

                        try {
                            int var10000;
                            int var10003;
                            try {
                                int _jspx_exception = _jspx_th_form_005fform_005f0.doStartTag();
                                int var123;
                                if (_jspx_exception != 0) {
                                    do {
                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t");
                                        if (this._jspx_meth_form_005fhidden_005f0(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t");
                                        if (this._jspx_meth_form_005fhidden_005f1(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t");
                                        if (this._jspx_meth_sys_005fmessage_005f0(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t<table class=\"table table-bordered  table-condensed dataTables-example dataTable no-footer\">\n");
                                        ((JspWriter) out).write("\t\t\t\t   <tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t<tr>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"><font color=\"red\">*</font>??:</label></td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_form_005finput_005f0(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"><font color=\"red\">*</font>:</label></td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_form_005finput_005f1(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t</tr>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t<tr>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"></label></td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_form_005fselect_005f0(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<span class=\"help-inline\">???</span>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"><font color=\"red\">*</font>??:</label></td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_form_005finput_005f2(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t</tr>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t<tr>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\">??:</label></td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        SelectTag _jspx_th_form_005fselect_005f1 = (SelectTag) this._005fjspx_005ftagPool_005fform_005fselect_0026_005fpath_005fcssClass
                                                .get(SelectTag.class);

                                        try {
                                            _jspx_th_form_005fselect_005f1.setPageContext(_jspx_page_context);
                                            _jspx_th_form_005fselect_005f1
                                                    .setParent(_jspx_th_form_005fform_005f0);
                                            _jspx_th_form_005fselect_005f1.setPath("parentTable");
                                            _jspx_th_form_005fselect_005f1.setCssClass("form-control");
                                            int[] evalDoAfterBody = new int[1];

                                            try {
                                                int _jspx_exception1 = _jspx_th_form_005fselect_005f1
                                                        .doStartTag();
                                                int var125;
                                                if (_jspx_exception1 != 0) {
                                                    do {
                                                        ((JspWriter) out).write("\n");
                                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t");
                                                        OptionTag _jspx_th_form_005foption_005f0 = (OptionTag) this._005fjspx_005ftagPool_005fform_005foption_0026_005fvalue
                                                                .get(OptionTag.class);

                                                        try {
                                                            _jspx_th_form_005foption_005f0
                                                                    .setPageContext(_jspx_page_context);
                                                            _jspx_th_form_005foption_005f0
                                                                    .setParent(_jspx_th_form_005fselect_005f1);
                                                            _jspx_th_form_005foption_005f0.setValue("");
                                                            int[] evalDoAfterBody1 = new int[1];

                                                            try {
                                                                int _jspx_exception2 = _jspx_th_form_005foption_005f0
                                                                        .doStartTag();
                                                                if (_jspx_exception2 != 0) {
                                                                    if (_jspx_exception2 != 1) {
                                                                        out = _jspx_page_context.pushBody();
                                                                        ++evalDoAfterBody1[0];
                                                                        _jspx_th_form_005foption_005f0
                                                                                .setBodyContent(
                                                                                        (BodyContent) out);
                                                                        _jspx_th_form_005foption_005f0
                                                                                .doInitBody();
                                                                    }

                                                                    _jspx_page_context.findAttribute("value");
                                                                    String var124 = (String) _jspx_page_context
                                                                            .findAttribute("displayValue");

                                                                    int evalDoAfterBody2;
                                                                    do {
                                                                        ((JspWriter) out).write(26080);
                                                                        evalDoAfterBody2 = _jspx_th_form_005foption_005f0
                                                                                .doAfterBody();
                                                                        _jspx_page_context
                                                                                .findAttribute("value");
                                                                        var124 = (String) _jspx_page_context
                                                                                .findAttribute("displayValue");
                                                                    } while (evalDoAfterBody2 == 2);

                                                                    if (_jspx_exception2 != 1) {
                                                                        out = _jspx_page_context.popBody();
                                                                        --evalDoAfterBody1[0];
                                                                    }
                                                                }

                                                                if (_jspx_th_form_005foption_005f0
                                                                        .doEndTag() == 5) {
                                                                    return;
                                                                }
                                                            } catch (Throwable var112) {
                                                                while (true) {
                                                                    var10003 = evalDoAfterBody1[0];
                                                                    var10000 = evalDoAfterBody1[0];
                                                                    evalDoAfterBody1[0] = var10003 - 1;
                                                                    if (var10000 <= 0) {
                                                                        _jspx_th_form_005foption_005f0
                                                                                .doCatch(var112);
                                                                        break;
                                                                    }

                                                                    out = _jspx_page_context.popBody();
                                                                }
                                                            } finally {
                                                                _jspx_th_form_005foption_005f0.doFinally();
                                                            }
                                                        } finally {
                                                            this._005fjspx_005ftagPool_005fform_005foption_0026_005fvalue
                                                                    .reuse(_jspx_th_form_005foption_005f0);
                                                        }

                                                        ((JspWriter) out).write("\n");
                                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t");
                                                        if (this._jspx_meth_form_005foptions_005f1(
                                                                _jspx_th_form_005fselect_005f1,
                                                                _jspx_page_context, evalDoAfterBody)) {
                                                            return;
                                                        }

                                                        ((JspWriter) out).write("\n");
                                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                                        var125 = _jspx_th_form_005fselect_005f1.doAfterBody();
                                                    } while (var125 == 2);
                                                }

                                                if (_jspx_th_form_005fselect_005f1.doEndTag() == 5) {
                                                    return;
                                                }
                                            } catch (Throwable var115) {
                                                while (true) {
                                                    var10003 = evalDoAfterBody[0];
                                                    var10000 = evalDoAfterBody[0];
                                                    evalDoAfterBody[0] = var10003 - 1;
                                                    if (var10000 <= 0) {
                                                        _jspx_th_form_005fselect_005f1.doCatch(var115);
                                                        break;
                                                    }

                                                    out = _jspx_page_context.popBody();
                                                }
                                            } finally {
                                                _jspx_th_form_005fselect_005f1.doFinally();
                                            }
                                        } finally {
                                            this._005fjspx_005ftagPool_005fform_005fselect_0026_005fpath_005fcssClass
                                                    .reuse(_jspx_th_form_005fselect_005f1);
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\">?</label></td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_form_005finput_005f3(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t</tr>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t\t\t</tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t</table>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t<button class=\"btn btn-white btn-sm\" onclick=\"return addColumn()\"><i class=\"fa fa-plus\"> </i></button>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t<button class=\"btn btn-white btn-sm\" onclick=\"return delColumn()\"><i class=\"fa fa-minus\"> </i> </button>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t<br/>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t\t<div class=\"tabs-container\">\n");
                                        ((JspWriter) out)
                                                .write("                    <ul class=\"nav nav-tabs\">\n");
                                        ((JspWriter) out).write(
                                                "                        <li class=\"active\"><a data-toggle=\"tab\" href=\"#tab-1\" aria-expanded=\"true\"> ?</a>\n");
                                        ((JspWriter) out).write("                        </li>\n");
                                        ((JspWriter) out).write(
                                                "                        <li class=\"\"><a data-toggle=\"tab\" href=\"#tab-2\" aria-expanded=\"false\">?</a>\n");
                                        ((JspWriter) out).write("                        </li>\n");
                                        ((JspWriter) out).write(
                                                "                        <li class=\"\"><a data-toggle=\"tab\" href=\"#tab-4\" aria-expanded=\"false\">?</a>\n");
                                        ((JspWriter) out).write("                        </li>\n");
                                        ((JspWriter) out).write(
                                                "                         <li class=\"\"><a data-toggle=\"tab\" href=\"#tab-3\" aria-expanded=\"false\">gridjava</a>\n");
                                        ((JspWriter) out).write("                        </li>\n");
                                        ((JspWriter) out).write("                         \n");
                                        ((JspWriter) out).write("                    </ul>\n");
                                        ((JspWriter) out)
                                                .write("                    <div class=\"tab-content\">\n");
                                        ((JspWriter) out).write(
                                                "                        <div id=\"tab-1\" class=\"tab-pane active\">\n");
                                        ((JspWriter) out).write(
                                                "                            <div class=\"panel-body\">\n");
                                        ((JspWriter) out).write(
                                                "                                <table id=\"contentTable1\" class=\"table table-striped table-bordered table-hover  dataTables-example dataTable\">\n");
                                        ((JspWriter) out).write("                                <thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t<tr>\n");
                                        ((JspWriter) out)
                                                .write("\t\t\t\t\t\t\t\t\t\t<th width=\"40px\">??</th>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t\t<th>?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t\t\t<th title=\"???\">??</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t\t\t<th title=\"??\">?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t\t\t<!-- <th title=\"?????\">?</th> -->\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t\t\t<!--<th title=\"?insert?\">?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t\t\t<th title=\"?update?\"></th>  -->\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t</tr>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t</thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t<tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fif_005f0(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fforEach_005f4(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t</table>\n");
                                        ((JspWriter) out).write("                            </div>\n");
                                        ((JspWriter) out).write("                        </div>\n");
                                        ((JspWriter) out).write(
                                                "                        <div id=\"tab-2\" class=\"tab-pane\">\n");
                                        ((JspWriter) out).write(
                                                "                            <div class=\"panel-body\">\n");
                                        ((JspWriter) out).write(
                                                "                                 <table id=\"contentTable2\" class=\"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable\">\n");
                                        ((JspWriter) out).write("                              <thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<tr>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"???\"  width=\"15%\">??</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"\" width=\"15%\">Java</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"??.??|??2|??3user.id|name|loginName??2??3Join?\">Java?? <i class=\"icon-question-sign\"></i></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?\">?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"??\" width=\"15%\">??</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?\" width=\"15%\">?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?????\"></th>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</tr>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fif_005f1(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fforEach_005f26(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t</table>\n");
                                        ((JspWriter) out).write("                            </div>\n");
                                        ((JspWriter) out).write("                        </div>\n");
                                        ((JspWriter) out).write("                        \n");
                                        ((JspWriter) out).write(
                                                "                         <div id=\"tab-3\" class=\"tab-pane\">\n");
                                        ((JspWriter) out).write(
                                                "                            <div class=\"panel-body\">\n");
                                        ((JspWriter) out).write(
                                                "                                 <table id=\"contentTable3\" class=\"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable\">\n");
                                        ((JspWriter) out).write("                              <thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<tr>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"???\"  width=\"15%\">??</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"\" width=\"15%\">table??</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"label1|label2|label3??|??|\">JAVA<i class=\"icon-question-sign\"></i></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?\">JAVA??</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"??\">key</th>\n");
                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</tr>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fif_005f5(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fforEach_005f30(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t</table>\n");
                                        ((JspWriter) out).write("                            </div>\n");
                                        ((JspWriter) out).write("                        </div>\n");
                                        ((JspWriter) out).write("                        \n");
                                        ((JspWriter) out).write("                        \n");
                                        ((JspWriter) out).write(
                                                "                                <div id=\"tab-4\" class=\"tab-pane\">\n");
                                        ((JspWriter) out).write(
                                                "                            <div class=\"panel-body\">\n");
                                        ((JspWriter) out).write(
                                                "                                 <table id=\"contentTable4\" class=\"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable\">\n");
                                        ((JspWriter) out).write("                              <thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<tr>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"???\"  width=\"15%\">??</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?????\">?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"\"><i class=\"icon-question-sign\"></i></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?\">?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"\"></th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"?\">?</th>\n");
                                        ((JspWriter) out).write(
                                                "\t\t\t\t\t\t\t\t<th title=\"\"></th>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</tr>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</thead>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t<tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fif_005f6(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t\t");
                                        if (this._jspx_meth_c_005fforEach_005f38(_jspx_th_form_005fform_005f0,
                                                _jspx_page_context,
                                                _jspx_push_body_count_form_005fform_005f0)) {
                                            return;
                                        }

                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\t</table>\n");
                                        ((JspWriter) out).write("                            </div>\n");
                                        ((JspWriter) out).write("                        </div>\n");
                                        ((JspWriter) out).write("                        \n");
                                        ((JspWriter) out).write("                    </div>\n");
                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("\n");
                                        ((JspWriter) out).write("                </div>\n");
                                        ((JspWriter) out).write("\t\t\t\t\t\n");
                                        ((JspWriter) out).write("\t\t\t");
                                        var123 = _jspx_th_form_005fform_005f0.doAfterBody();
                                    } while (var123 == 2);
                                }

                                if (_jspx_th_form_005fform_005f0.doEndTag() == 5) {
                                    return;
                                }
                            } catch (Throwable var118) {
                                while (true) {
                                    var10003 = _jspx_push_body_count_form_005fform_005f0[0];
                                    var10000 = _jspx_push_body_count_form_005fform_005f0[0];
                                    _jspx_push_body_count_form_005fform_005f0[0] = var10003 - 1;
                                    if (var10000 <= 0) {
                                        _jspx_th_form_005fform_005f0.doCatch(var118);
                                        break;
                                    }

                                    out = _jspx_page_context.popBody();
                                }
                            }
                        } finally {
                            _jspx_th_form_005fform_005f0.doFinally();
                        }
                    } finally {
                        this._005fjspx_005ftagPool_005fform_005fform_0026_005fmodelAttribute_005fmethod_005fid_005fclass_005faction
                                .reuse(_jspx_th_form_005fform_005f0);
                    }

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

                ((JspWriter) out).write("\n");
                ((JspWriter) out).write("\t\n");
                ((JspWriter) out).write("</body>\n");
                ((JspWriter) out).write("</html>\n");
            } catch (Throwable var121) {
                if (!(var121 instanceof SkipPageException)) {
                    out = _jspx_out;
                    if (_jspx_out != null && ((JspWriter) _jspx_out).getBufferSize() != 0) {
                        try {
                            if (response.isCommitted()) {
                                ((JspWriter) out).flush();
                            } else {
                                ((JspWriter) out).clearBuffer();
                            }
                        } catch (IOException var111) {
                            ;
                        }
                    }

                    if (_jspx_page_context == null) {
                        throw new ServletException(var121);
                    }

                    _jspx_page_context.handlePageException(var121);
                    return;
                }
            }

        } finally {
            _jspxFactory.releasePageContext(_jspx_page_context);
        }
    }
}

From source file:org.apache.struts.taglib.TagUtils.java

/**
 * Compute a hyperlink URL based on the <code>forward</code>,
 * <code>href</code>, <code>action</code> or <code>page</code> parameter
 * that is not null. The returned URL will have already been passed to
 * <code>response.encodeURL()</code> for adding a session identifier.
 *
 * @param pageContext      PageContext for the tag making this call
 * @param forward          Logical forward name for which to look up the
 *                         context-relative URI (if specified)
 * @param href             URL to be utilized unmodified (if specified)
 * @param page             Module-relative page for which a URL should be
 *                         created (if specified)
 * @param action           Logical action name for which to look up the
 *                         context-relative URI (if specified)
 * @param params           Map of parameters to be dynamically included
 *                         (if any)/*from w  w  w  .  j a v  a2s .c  o m*/
 * @param anchor           Anchor to be dynamically included (if any)
 * @param redirect         Is this URL for a <code>response.sendRedirect()</code>?
 * @param encodeSeparator  This is only checked if redirect is set to
 *                         false (never encoded for a redirect).  If true,
 *                         query string parameter separators are encoded
 *                         as &gt;amp;, else &amp; is used.
 * @param useLocalEncoding If set to true, urlencoding is done on the
 *                         bytes of character encoding from
 *                         ServletResponse#getCharacterEncoding. Use UTF-8
 *                         otherwise.
 * @return URL with session identifier
 * @throws java.net.MalformedURLException if a URL cannot be created for
 *                                        the specified parameters
 */
public String computeURLWithCharEncoding(PageContext pageContext, String forward, String href, String page,
        String action, String module, Map params, String anchor, boolean redirect, boolean encodeSeparator,
        boolean useLocalEncoding) throws MalformedURLException {
    String charEncoding = "UTF-8";

    if (useLocalEncoding) {
        charEncoding = pageContext.getResponse().getCharacterEncoding();
    }

    // TODO All the computeURL() methods need refactoring!
    // Validate that exactly one specifier was included
    int n = 0;

    if (forward != null) {
        n++;
    }

    if (href != null) {
        n++;
    }

    if (page != null) {
        n++;
    }

    if (action != null) {
        n++;
    }

    if (n != 1) {
        throw new MalformedURLException(messages.getMessage("computeURL.specifier"));
    }

    // Look up the module configuration for this request
    ModuleConfig moduleConfig = getModuleConfig(module, pageContext);

    // Calculate the appropriate URL
    StringBuffer url = new StringBuffer();
    HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();

    if (forward != null) {
        ForwardConfig forwardConfig = moduleConfig.findForwardConfig(forward);

        if (forwardConfig == null) {
            throw new MalformedURLException(messages.getMessage("computeURL.forward", forward));
        }

        // **** removed - see bug 37817 ****
        //  if (forwardConfig.getRedirect()) {
        //      redirect = true;
        //  }

        if (forwardConfig.getPath().startsWith("/")) {
            url.append(request.getContextPath());
            url.append(RequestUtils.forwardURL(request, forwardConfig, moduleConfig));
        } else {
            url.append(forwardConfig.getPath());
        }
    } else if (href != null) {
        url.append(href);
    } else if (action != null) {
        ActionServlet servlet = (ActionServlet) pageContext.getServletContext()
                .getAttribute(Globals.ACTION_SERVLET_KEY);
        String actionIdPath = RequestUtils.actionIdURL(action, moduleConfig, servlet);
        if (actionIdPath != null) {
            action = actionIdPath;
            url.append(request.getContextPath());
            url.append(actionIdPath);
        } else {
            url.append(instance.getActionMappingURL(action, module, pageContext, false));
        }
    } else /* if (page != null) */
    {
        url.append(request.getContextPath());
        url.append(this.pageURL(request, page, moduleConfig));
    }

    // Add anchor if requested (replacing any existing anchor)
    if (anchor != null) {
        String temp = url.toString();
        int hash = temp.indexOf('#');

        if (hash >= 0) {
            url.setLength(hash);
        }

        url.append('#');
        url.append(this.encodeURL(anchor, charEncoding));
    }

    // Add dynamic parameters if requested
    if ((params != null) && (params.size() > 0)) {
        // Save any existing anchor
        String temp = url.toString();
        int hash = temp.indexOf('#');

        if (hash >= 0) {
            anchor = temp.substring(hash + 1);
            url.setLength(hash);
            temp = url.toString();
        } else {
            anchor = null;
        }

        // Define the parameter separator
        String separator = null;

        if (redirect) {
            separator = "&";
        } else if (encodeSeparator) {
            separator = "&amp;";
        } else {
            separator = "&";
        }

        // Add the required request parameters
        boolean question = temp.indexOf('?') >= 0;
        Iterator keys = params.keySet().iterator();

        while (keys.hasNext()) {
            String key = (String) keys.next();
            Object value = params.get(key);

            if (value == null) {
                if (!question) {
                    url.append('?');
                    question = true;
                } else {
                    url.append(separator);
                }

                url.append(this.encodeURL(key, charEncoding));
                url.append('='); // Interpret null as "no value"
            } else if (value instanceof String) {
                if (!question) {
                    url.append('?');
                    question = true;
                } else {
                    url.append(separator);
                }

                url.append(this.encodeURL(key, charEncoding));
                url.append('=');
                url.append(this.encodeURL((String) value, charEncoding));
            } else if (value instanceof String[]) {
                String[] values = (String[]) value;

                for (int i = 0; i < values.length; i++) {
                    if (!question) {
                        url.append('?');
                        question = true;
                    } else {
                        url.append(separator);
                    }

                    url.append(this.encodeURL(key, charEncoding));
                    url.append('=');
                    url.append(this.encodeURL(values[i], charEncoding));
                }
            } else /* Convert other objects to a string */
            {
                if (!question) {
                    url.append('?');
                    question = true;
                } else {
                    url.append(separator);
                }

                url.append(this.encodeURL(key, charEncoding));
                url.append('=');
                url.append(this.encodeURL(value.toString(), charEncoding));
            }
        }

        // Re-add the saved anchor (if any)
        if (anchor != null) {
            url.append('#');
            url.append(this.encodeURL(anchor, charEncoding));
        }
    }

    // Perform URL rewriting to include our session ID (if any)
    // but only if url is not an external URL
    if ((href == null) && (pageContext.getSession() != null)) {
        HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();

        if (redirect) {
            return (response.encodeRedirectURL(url.toString()));
        }

        return (response.encodeURL(url.toString()));
    }

    return (url.toString());
}

From source file:org.apache.struts.taglib.TagUtils.java

/**
 * Return the specified ModuleConfig object for the given prefix if it
 * exists, otherwise a NullPointerException will be thrown.
 *
 * @param module      The module prefix//from   ww  w  .  ja  v a 2s  .  c  o m
 * @param pageContext The page context.
 * @return the ModuleConfig object
 * @throws NullPointerException Thrown when module cannot be found
 */
public ModuleConfig getModuleConfig(String module, PageContext pageContext) {
    ModuleConfig config = ModuleUtils.getInstance().getModuleConfig(module,
            (HttpServletRequest) pageContext.getRequest(), pageContext.getServletContext());

    // ModuleConfig not found
    if (config == null) {
        throw new NullPointerException("Module '" + module + "' not found.");
    }

    return config;
}

From source file:org.apache.struts.taglib.tiles.util.TagUtils.java

/**
 * Get component definition by its name.
 * @param name Definition name./*www  .j  a v a2  s  .  com*/
 * @param pageContext The PageContext for the current page.
 * @throws JspException -
 */
public static ComponentDefinition getComponentDefinition(String name, PageContext pageContext)
        throws JspException {

    try {
        return TilesUtil.getDefinition(name, pageContext.getRequest(), pageContext.getServletContext());

    } catch (NoSuchDefinitionException ex) {
        throw new JspException("Error : Can't get component definition for '" + name
                + "'. Check if this name exist in component definitions.");
    } catch (FactoryNotFoundException ex) { // factory not found.
        throw new JspException(ex.getMessage());

    } catch (DefinitionsFactoryException ex) {
        if (debug)
            ex.printStackTrace();
        // Save exception to be able to show it later
        saveException(pageContext, ex);
        throw new JspException(ex.getMessage());
    }
}

From source file:org.apache.struts.tiles.taglib.util.TagUtils.java

/**
 * Get component definition by its name.
 * @param name Definition name./*from   w w w . ja va2s.c  om*/
 * @param pageContext The PageContext for the current page.
 * @throws JspException -
 */
public static ComponentDefinition getComponentDefinition(String name, PageContext pageContext)
        throws JspException {

    try {
        return TilesUtil.getDefinition(name, pageContext.getRequest(), pageContext.getServletContext());

    } catch (NoSuchDefinitionException ex) {
        throw new JspException("Error : Can't get component definition for '" + name
                + "'. Check if this name exist in component definitions.", ex);
    } catch (FactoryNotFoundException ex) { // factory not found.
        throw new JspException(ex);

    } catch (DefinitionsFactoryException ex) {
        if (debug)
            ex.printStackTrace();
        // Save exception to be able to show it later
        saveException(pageContext, ex);
        throw new JspException(ex);
    }
}