Example usage for javax.servlet DispatcherType ERROR

List of usage examples for javax.servlet DispatcherType ERROR

Introduction

In this page you can find the example usage for javax.servlet DispatcherType ERROR.

Prototype

DispatcherType ERROR

To view the source code for javax.servlet DispatcherType ERROR.

Click Source Link

Usage

From source file:com.olegchir.wicket_spring_security_example.init.AppInitializer.java

@Override
public void onStartup(ServletContext servletContext) throws ServletException {

    //Create webapp context
    AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext(); //part of spring-web
    root.register(SpringSecurityConfiguration.class); //register class by annotation. Here be all security rules.

    //Register DelegatingFilterProxy
    FilterRegistration.Dynamic springSecurityFilterChainReg = servletContext
            .addFilter("springSecurityFilterChain", DelegatingFilterProxy.class);
    springSecurityFilterChainReg/*  www  . j  a v  a2 s . c o m*/
            .addMappingForUrlPatterns(EnumSet.of(DispatcherType.ERROR, DispatcherType.REQUEST), false, "/*");

    servletContext.addListener(new ContextLoaderListener(root));

    //Register WicketFilter
    WicketFilter wicketFilter = new WicketFilter(new WicketApplication()) {
        @Override
        public void init(boolean isServlet, FilterConfig filterConfig) throws ServletException {
            setFilterPath(""); //don't use web.xml. WicketApplication.init is a custom override for it.
            super.init(isServlet, filterConfig);
        }
    };
    FilterRegistration.Dynamic wicketFilterReg = servletContext.addFilter("wicketFilter", wicketFilter);
    wicketFilterReg.addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), true, "*");
}

From source file:com.test.config.BackendConsoleWebConfig.java

@Override
public void onStartup(ServletContext servletContext) throws ServletException {
    AnnotationConfigWebApplicationContext webCtx = new AnnotationConfigWebApplicationContext();
    webCtx.register(BackendConsoleMVCConfig.class);
    webCtx.register(BackendConsoleConfig.class);

    servletContext.addListener(new ContextLoaderListener(webCtx));

    /* Spring Delegating Dispatcher Servlet */
    Servlet dispatcherServlet = new DispatcherServlet(webCtx);
    ServletRegistration.Dynamic dispatcherServletReg = servletContext.addServlet("dispatcherServlet",
            dispatcherServlet);//w w w .  ja  va 2  s . co m
    dispatcherServletReg.setLoadOnStartup(1);
    dispatcherServletReg.setInitParameter("contextConfigLocation", "");
    dispatcherServletReg.addMapping("/");

    /* Spring Security Delegating Filter */
    FilterRegistration springSecurityFilterChainReg = servletContext.addFilter("springSecurityFilterChain",
            DelegatingFilterProxy.class);
    springSecurityFilterChainReg.addMappingForServletNames(EnumSet.of(DispatcherType.REQUEST,
            DispatcherType.FORWARD, DispatcherType.ERROR, DispatcherType.ASYNC), false,
            dispatcherServletReg.getName());
}

From source file:org.ireland.jnetty.dispatch.filter.FilterMapping.java

/**
 * True if the dispatcher is for ERROR.//  w  ww . jav a  2s . c o  m
 */
public boolean isError() {
    return _dispatcherTypes != null && _dispatcherTypes.contains(DispatcherType.ERROR);
}

From source file:com.jsmartframework.web.manager.ContextControl.java

@Override
@SuppressWarnings("unchecked")
public void contextInitialized(ServletContextEvent event) {
    try {//from   w w  w  . jav a2  s. c o  m
        ServletContext servletContext = event.getServletContext();

        CONFIG.init(servletContext);
        if (CONFIG.getContent() == null) {
            throw new RuntimeException("Configuration file " + Constants.WEB_CONFIG_XML
                    + " was not found in WEB-INF resources folder!");
        }

        String contextConfigLocation = "com.jsmartframework.web.manager";
        if (CONFIG.getContent().getPackageScan() != null) {
            contextConfigLocation += "," + CONFIG.getContent().getPackageScan();
        }

        // Configure necessary parameters in the ServletContext to set Spring configuration without needing an XML file
        AnnotationConfigWebApplicationContext configWebAppContext = new AnnotationConfigWebApplicationContext();
        configWebAppContext.setConfigLocation(contextConfigLocation);

        CONTEXT_LOADER = new ContextLoader(configWebAppContext);
        CONTEXT_LOADER.initWebApplicationContext(servletContext);

        TagEncrypter.init();
        TEXTS.init();
        IMAGES.init(servletContext);
        HANDLER.init(servletContext);

        // ServletControl -> @MultipartConfig @WebServlet(name = "ServletControl", displayName = "ServletControl", loadOnStartup = 1)
        Servlet servletControl = servletContext.createServlet(
                (Class<? extends Servlet>) Class.forName("com.jsmartframework.web.manager.ServletControl"));
        ServletRegistration.Dynamic servletControlReg = (ServletRegistration.Dynamic) servletContext
                .addServlet("ServletControl", servletControl);
        servletControlReg.setAsyncSupported(true);
        servletControlReg.setLoadOnStartup(1);

        // ServletControl Initial Parameters
        InitParam[] initParams = CONFIG.getContent().getInitParams();
        if (initParams != null) {
            for (InitParam initParam : initParams) {
                servletControlReg.setInitParameter(initParam.getName(), initParam.getValue());
            }
        }

        // MultiPart to allow file upload on ServletControl
        MultipartConfigElement multipartElement = getServletMultipartElement();
        if (multipartElement != null) {
            servletControlReg.setMultipartConfig(multipartElement);
        }

        // Security constraint to ServletControl
        ServletSecurityElement servletSecurityElement = getServletSecurityElement(servletContext);
        if (servletSecurityElement != null) {
            servletControlReg.setServletSecurity(servletSecurityElement);
        }

        // TODO: Fix problem related to authentication by container to use SSL dynamically (Maybe create more than one servlet for secure and non-secure patterns)
        // Check also the use of request.login(user, pswd)
        // Check the HttpServletRequest.BASIC_AUTH, CLIENT_CERT_AUTH, FORM_AUTH, DIGEST_AUTH
        // servletReg.setRunAsRole("admin");
        // servletContext.declareRoles("admin");

        // ServletControl URL mapping
        String[] servletMapping = getServletMapping();
        servletControlReg.addMapping(servletMapping);

        // ErrorFilter -> @WebFilter(urlPatterns = {"/*"})
        Filter errorFilter = servletContext.createFilter(
                (Class<? extends Filter>) Class.forName("com.jsmartframework.web.filter.ErrorFilter"));
        FilterRegistration.Dynamic errorFilterReg = (FilterRegistration.Dynamic) servletContext
                .addFilter("ErrorFilter", errorFilter);

        errorFilterReg.setAsyncSupported(true);
        errorFilterReg.addMappingForUrlPatterns(
                EnumSet.of(DispatcherType.REQUEST, DispatcherType.FORWARD, DispatcherType.ERROR), true, "/*");

        // EncodeFilter -> @WebFilter(urlPatterns = {"/*"})
        Filter encodeFilter = servletContext.createFilter(
                (Class<? extends Filter>) Class.forName("com.jsmartframework.web.filter.EncodeFilter"));
        FilterRegistration.Dynamic encodeFilterReg = (FilterRegistration.Dynamic) servletContext
                .addFilter("EncodeFilter", encodeFilter);

        encodeFilterReg.setAsyncSupported(true);
        encodeFilterReg.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST, DispatcherType.ERROR), true,
                "/*");

        // CacheFilter -> @WebFilter(urlPatterns = {"/*"})
        Filter cacheFilter = servletContext.createFilter(
                (Class<? extends Filter>) Class.forName("com.jsmartframework.web.filter.CacheFilter"));
        FilterRegistration.Dynamic cacheFilterReg = (FilterRegistration.Dynamic) servletContext
                .addFilter("CacheFilter", cacheFilter);

        cacheFilterReg.setAsyncSupported(true);
        cacheFilterReg.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST, DispatcherType.ERROR), true,
                "/*");

        // Add custom filters defined by client
        for (String filterName : sortCustomFilters()) {
            Filter customFilter = servletContext
                    .createFilter((Class<? extends Filter>) HANDLER.webFilters.get(filterName));
            HANDLER.executeInjection(customFilter);

            WebFilter webFilter = customFilter.getClass().getAnnotation(WebFilter.class);
            FilterRegistration.Dynamic customFilterReg = (FilterRegistration.Dynamic) servletContext
                    .addFilter(filterName, customFilter);

            if (webFilter.initParams() != null) {
                for (WebInitParam initParam : webFilter.initParams()) {
                    customFilterReg.setInitParameter(initParam.name(), initParam.value());
                }
            }
            customFilterReg.setAsyncSupported(webFilter.asyncSupported());
            customFilterReg.addMappingForUrlPatterns(EnumSet.copyOf(Arrays.asList(webFilter.dispatcherTypes())),
                    true, webFilter.urlPatterns());
        }

        // FilterControl -> @WebFilter(servletNames = {"ServletControl"})
        Filter filterControl = servletContext.createFilter(
                (Class<? extends Filter>) Class.forName("com.jsmartframework.web.manager.FilterControl"));
        FilterRegistration.Dynamic filterControlReg = (FilterRegistration.Dynamic) servletContext
                .addFilter("FilterControl", filterControl);

        filterControlReg.setAsyncSupported(true);
        filterControlReg.addMappingForServletNames(EnumSet.of(DispatcherType.REQUEST, DispatcherType.FORWARD,
                DispatcherType.ERROR, DispatcherType.INCLUDE), true, "ServletControl");

        // OutputFilter -> @WebFilter(servletNames = {"ServletControl"})
        Filter outputFilter = servletContext.createFilter(
                (Class<? extends Filter>) Class.forName("com.jsmartframework.web.manager.OutputFilter"));
        FilterRegistration.Dynamic outputFilterReg = (FilterRegistration.Dynamic) servletContext
                .addFilter("OutputFilter", outputFilter);

        outputFilterReg.setAsyncSupported(true);
        outputFilterReg.addMappingForServletNames(EnumSet.of(DispatcherType.REQUEST, DispatcherType.FORWARD,
                DispatcherType.ERROR, DispatcherType.INCLUDE), true, "ServletControl");

        // AsyncFilter -> @WebFilter(servletNames = {"ServletControl"})
        // Filter used case AsyncContext is dispatched internally by AsyncBean implementation
        Filter asyncFilter = servletContext.createFilter(
                (Class<? extends Filter>) Class.forName("com.jsmartframework.web.manager.AsyncFilter"));
        FilterRegistration.Dynamic asyncFilterReg = (FilterRegistration.Dynamic) servletContext
                .addFilter("AsyncFilter", asyncFilter);

        asyncFilterReg.setAsyncSupported(true);
        asyncFilterReg.addMappingForServletNames(EnumSet.of(DispatcherType.ASYNC), true, "ServletControl");

        // SessionControl -> @WebListener
        EventListener sessionListener = servletContext.createListener((Class<? extends EventListener>) Class
                .forName("com.jsmartframework.web.manager.SessionControl"));
        servletContext.addListener(sessionListener);

        // RequestControl -> @WebListener
        EventListener requestListener = servletContext.createListener((Class<? extends EventListener>) Class
                .forName("com.jsmartframework.web.manager.RequestControl"));
        servletContext.addListener(requestListener);

        // Custom WebServlet -> Custom Servlets created by application
        for (String servletName : HANDLER.webServlets.keySet()) {
            Servlet customServlet = servletContext
                    .createServlet((Class<? extends Servlet>) HANDLER.webServlets.get(servletName));
            HANDLER.executeInjection(customServlet);

            WebServlet webServlet = customServlet.getClass().getAnnotation(WebServlet.class);
            ServletRegistration.Dynamic customReg = (ServletRegistration.Dynamic) servletContext
                    .addServlet(servletName, customServlet);

            customReg.setLoadOnStartup(webServlet.loadOnStartup());
            customReg.setAsyncSupported(webServlet.asyncSupported());

            WebInitParam[] customInitParams = webServlet.initParams();
            if (customInitParams != null) {
                for (WebInitParam customInitParam : customInitParams) {
                    customReg.setInitParameter(customInitParam.name(), customInitParam.value());
                }
            }

            // Add mapping url for custom servlet
            customReg.addMapping(webServlet.urlPatterns());

            if (customServlet.getClass().isAnnotationPresent(MultipartConfig.class)) {
                customReg.setMultipartConfig(new MultipartConfigElement(
                        customServlet.getClass().getAnnotation(MultipartConfig.class)));
            }
        }

        // Controller Dispatcher for Spring MVC
        Set<String> requestPaths = HANDLER.requestPaths.keySet();
        if (!requestPaths.isEmpty()) {
            ServletRegistration.Dynamic mvcDispatcherReg = servletContext.addServlet("DispatcherServlet",
                    new DispatcherServlet(configWebAppContext));
            mvcDispatcherReg.setLoadOnStartup(1);
            mvcDispatcherReg.addMapping(requestPaths.toArray(new String[requestPaths.size()]));

            // RequestPathFilter -> @WebFilter(servletNames = {"DispatcherServlet"})
            Filter requestPathFilter = servletContext.createFilter((Class<? extends Filter>) Class
                    .forName("com.jsmartframework.web.manager.RequestPathFilter"));
            FilterRegistration.Dynamic reqPathFilterReg = (FilterRegistration.Dynamic) servletContext
                    .addFilter("RequestPathFilter", requestPathFilter);

            reqPathFilterReg.addMappingForServletNames(EnumSet.of(DispatcherType.REQUEST,
                    DispatcherType.FORWARD, DispatcherType.ERROR, DispatcherType.INCLUDE, DispatcherType.ASYNC),
                    true, "DispatcherServlet");
        }
    } catch (Exception ex) {
        throw new RuntimeException(ex);
    }
}

From source file:com.evolveum.midpoint.web.boot.MidPointSpringApplication.java

@Bean
public FilterRegistrationBean wicket() {
    FilterRegistrationBean registration = new FilterRegistrationBean();
    registration.setFilter(new WicketFilter());
    registration.setDispatcherTypes(DispatcherType.REQUEST, DispatcherType.ERROR);
    registration.addUrlPatterns("/*");
    registration.addInitParameter(WicketFilter.FILTER_MAPPING_PARAM, "/*");
    registration.addInitParameter(Application.CONFIGURATION, "deployment"); // development
    registration.addInitParameter("applicationBean", "midpointApplication");
    registration.addInitParameter(WicketFilter.APP_FACT_PARAM,
            "org.apache.wicket.spring.SpringWebApplicationFactory");

    return registration;
}

From source file:org.ireland.jnetty.webapp.WebApp.java

private void initConstructor() {

    _beanFactory = new BeanFactory(getClassLoader());

    _servletManager = new ServletManager(this);
    _servletMapper = new ServletMapper(this, this, _servletManager);

    _filterManager = new FilterManager(this, this);

    _dispatchFilterMapper = new FilterMapper(this, _filterManager, DispatcherType.REQUEST);

    _includeFilterMapper = new FilterMapper(this, _filterManager, DispatcherType.INCLUDE);

    _forwardFilterMapper = new FilterMapper(this, _filterManager, DispatcherType.FORWARD);

    _errorFilterMapper = new FilterMapper(this, _filterManager, DispatcherType.ERROR);

    // _errorPageManager = new ErrorPageManager(_server, this);

    // Use JVM temp dir as ServletContext temp dir.
    _tempDir = System.getProperty(TEMPDIR);

    _sessionManager = new SessionManager(this);

}

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  .co 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.dd4t.core.util.HttpUtils.java

public static String getCurrentURL(final HttpServletRequest request) {
    String url;/*from w  w  w  .j a  va 2s  . co m*/

    DispatcherType dispatcherType = request.getDispatcherType();
    if (dispatcherType == DispatcherType.ERROR) {
        url = request.getRequestURI();
    } else if (dispatcherType == DispatcherType.INCLUDE) {
        url = (String) request.getAttribute(RequestDispatcher.INCLUDE_REQUEST_URI);
    } else {
        url = getOriginalUri(request);
    }

    return url;
}