Example usage for javax.servlet.http HttpServletRequest getDispatcherType

List of usage examples for javax.servlet.http HttpServletRequest getDispatcherType

Introduction

In this page you can find the example usage for javax.servlet.http HttpServletRequest getDispatcherType.

Prototype

public DispatcherType getDispatcherType();

Source Link

Document

Gets the dispatcher type of this request.

Usage

From source file:com.boylesoftware.web.Router.java

/**
 * Route request./*from ww  w.j  a  v a  2s  . com*/
 *
 * @param webapp The application.
 * @param request The HTTP request.
 * @param response The HTTP response.
 *
 * @return {@code true} if the router took care of the request processing
 * and no further action is required, {@code false} if the router did not
 * process the request because it does not have a route for it.
 *
 * @throws ServletException If an error happens.
 * @throws IOException If an I/O error happens reading the request or
 * sending the response.
 */
boolean route(final AbstractWebApplication webapp, final HttpServletRequest request,
        final HttpServletResponse response) throws ServletException, IOException {

    if (this.log.isDebugEnabled())
        this.log.debug("received " + request.getDispatcherType() + " " + request.getMethod() + " "
                + request.getRequestURI() + " (" + request.getClass().getName() + ")");

    // execute corresponding logic
    return (request.getDispatcherType() == DispatcherType.ASYNC ? this.doAsync(webapp, request, response)
            : this.doRequest(webapp, request, response));
}

From source file:com.fluidops.iwb.server.HybridSearchServlet.java

/**
 * Retrieve the query from request, do the token based security check and
 * evaluate the query./*ww  w  .  ja v  a  2s  . c  o  m*/
 * 
 * @param req
 * @param resp
 * @throws IOException, ServletException 
 */
protected void handle(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {
    // register search page
    String uri = null;
    if (req.getDispatcherType() == DispatcherType.FORWARD)
        uri = (String) req.getAttribute(RequestDispatcher.FORWARD_REQUEST_URI);
    else
        uri = req.getRequestURI();

    // Done to avoid processing of a request from TimelineWidget.
    if (uri.endsWith("__history__.html")) {
        return;
    }

    FSession.registerPage(uri, FPage.class);

    FSession.removePage(req);

    // get session and page
    FSession session = FSession.getSession(req);
    FPage page;
    try {
        page = (FPage) session.getComponentById(uri, req);
    } catch (Exception e) {
        log.warn("Could not get the page for request: " + uri, e);
        resp.sendRedirect(RedirectService.getRedirectURL(RedirectType.PAGE_NOT_FOUND, req));
        return;
    }

    SearchPageContext pc = getPageContext();

    // register FPage
    pc.page = page;
    pc.session = session;

    // get and decode query
    pc.query = getQueryFromRequest(req);
    if (pc.query == null) {
        // use empty query if no query is given
        pc.query = "";
    }

    pc.query = pc.query.trim();
    PageContext.setThreadPageContext(pc);

    List<String> queryTargets = SearchProviderFactory.getDefaultQueryTargets();

    String[] vals;
    if ((vals = req.getParameterValues("queryTarget")) != null && (vals.length > 0)) {
        queryTargets = Lists.newArrayList(vals);
    }

    SparqlQueryType qt = null;

    // Currently, the special query language protocol can be passed in two ways:
    // - as a prefix to the query: e.g., "sql:".
    // - as a request parameter "queryLanguage".
    // If no query language is given explicitly, then the default routine is performed:
    // First, we check that the query is a valid SPARQL query and then, if it is not the case, it is interpreted as a 
    // keyword query.
    pc.queryLanguage = determineQueryLanguage(pc.query, req);

    // If the query language was provided as a prefix, we no longer need the prefix
    if (!pc.queryLanguage.equals("DEFAULT")
            && pc.query.toUpperCase().startsWith(pc.queryLanguage.toUpperCase() + ":")) {
        pc.query = pc.query.substring(pc.queryLanguage.length() + 1).trim();
    }

    if (pc.queryLanguage.equals("SPARQL") || pc.queryLanguage.equals("DEFAULT")) {
        try {
            qt = ReadDataManagerImpl.getSparqlQueryType(pc.query, true);
            // We managed to parse it as SPARQL, so it's SPARQL anyway.
            pc.queryLanguage = "SPARQL";
            // since ASK queries are used in bigowlim for several control functionalities
            // we do not want to support them right now. Same for UPDATE
            if (qt == SparqlQueryType.ASK || qt == SparqlQueryType.UPDATE) {
                error(resp, 403, "Not allowed to execute ASK or UPDATE queries.");
                return;
            }
        } catch (MalformedQueryException e) {
            // if the SPARQL prefix was provided explicitly: throw an error 
            if (pc.queryLanguage.equals("SPARQL")) {
                error(resp, 400, "Malformed query:\n\n" + pc.query + "\n\n" + e.getMessage());
                return;
            }
            // ignore: not a valid SPARQL query, treat it as keyword query
        }
    }

    //////////////////SECURITY CHECK/////////////////////////
    // remarks:
    // queries are checked, keywords and invalid queries are always allowed
    String securityToken = req.getParameter("st");
    if (!EndpointImpl.api().getUserManager().hasQueryPrivileges(pc.query, qt, securityToken)) {
        error(resp, 403, "Not enough rights to execute query.");
        return;
    }

    // value to be used in queries instead of ??
    String _resolveValue = req.getParameter("value");
    Value resolveValue = _resolveValue != null ? ValueFactoryImpl.getInstance().createURI(_resolveValue) : null;

    boolean infer = false; // default value for inferencing is false

    if (req.getParameter("infer") != null)
        infer = Boolean.parseBoolean(req.getParameter("infer"));

    pc.infer = infer;

    List<ErrorRecord> errorRecords = Lists.newArrayListWithCapacity(queryTargets.size());

    // empty query --> empty result
    if (pc.query.isEmpty()) {
        pc.queryLanguage = "KEYWORD";
        pc.queryType = "KEYWORD";

        try {
            pc.queryResult = new MutableTupleQueryResultImpl(new TupleQueryResultImpl(
                    Collections.<String>emptyList(), Collections.<BindingSet>emptyList().iterator()));
        } catch (QueryEvaluationException e) {
            log.warn("Could not produce a mutable tuple query result");
            log.debug("Details: ", e);
        }
    }
    // allowed SPARQL queries
    else if (pc.queryLanguage.equals("SPARQL")) {
        pc.queryType = qt.toString();

        QueryResult<?> queryRes = null;

        List<SparqlSearchProvider> sparqlProviders = SearchProviderFactory.getInstance()
                .getSparqlSearchProviders(queryTargets);

        for (SparqlSearchProvider sparqlProvider : sparqlProviders) {

            try {
                QueryResult<?> currentQueryRes = sparqlProvider.search(pc.query, qt, resolveValue, infer);
                queryRes = ReadDataManagerImpl.mergeQueryResults(queryRes, currentQueryRes);
            } catch (MalformedQueryException e) {
                // If a SPARQL query is malformed, no need to send it to all search providers
                error(resp, 400, e.getMessage());
                return;
            } catch (Exception e) {
                errorRecords.add(createErrorRecord(e, sparqlProvider, pc));
            }

        }

        if (queryRes == null) {
            if (qt == SparqlQueryType.CONSTRUCT) {
                queryRes = new GraphQueryResultImpl(
                        EndpointImpl.api().getNamespaceService().getRegisteredNamespacePrefixes(),
                        Collections.<Statement>emptyList());
            } else {
                queryRes = new MutableTupleQueryResultImpl(Lists.newArrayList("Results"),
                        Collections.<BindingSet>emptyList());
            }
        }
        pc.queryResult = queryRes;

    }
    // query with a pre-defined custom protocol
    else if (!pc.queryLanguage.equals("DEFAULT")) {
        pc.queryType = "KEYWORD";

        QueryResult<?> queryRes = null;

        List<SearchProvider> providers = SearchProviderFactory.getInstance()
                .getSearchProvidersSupportingQueryLanguage(queryTargets, pc.queryLanguage);

        QueryResult<?> currentQueryResult;

        for (SearchProvider provider : providers) {
            // If the query protocol was provided, we assume that the target knows how to deal with it.
            try {
                currentQueryResult = provider.search(pc.queryLanguage, pc.query);
                queryRes = ReadDataManagerImpl.mergeQueryResults(queryRes, currentQueryResult);
            } catch (Exception e) {
                errorRecords.add(createErrorRecord(e, provider, pc));
            }
        }

        pc.queryResult = (queryRes != null) ? queryRes : createEmptyKeywordQueryResult();

    }
    // keyword query
    else {

        try {
            handleKeywordQuery(pc, queryTargets);

        } catch (ParseException e) {
            error(resp, 400, "Malformed keyword query:\n\n" + pc.query + "\n\n" + e.getMessage());
        } catch (SearchException e) {
            errorRecords.add(createErrorRecord(e, pc));
        }
    }

    resp.setStatus(HttpServletResponse.SC_OK);

    // calculate facets
    // legacy code faceted search, currently not active
    //         String facetsAsString = "";
    //         if (Config.getConfig().getFacetedSearch().equals("standard")) 
    //         {
    //            FacetCalculator facetter = new FacetCalculator( pc );
    //            FContainer facetContainer = facetter.getFacetContainer();
    //            page.register(facetContainer);
    //            facetsAsString = facetContainer.htmlAnchor().toString();
    //            facetContainer.drawAdvHeader(true);
    //            facetContainer.drawHeader(false);
    //         }

    // page title
    pc.title = (pc.queryLanguage.equals("SPARQL") && !pc.queryType.equals("KEYWORD") || pc.query.isEmpty())
            ? "Search result"
            : "Search result: " + StringEscapeUtils.escapeHtml(pc.query);

    // TODO: activeLabel

    // select widgets to display search results
    selectWidgets(pc, infer);

    // layout result page
    populateContainer(pc, errorRecords);

    // print response
    EndpointImpl.api().getPrinter().print(pc, resp);
}

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 {//from  w ww. j  av a 2  s .c o m
        Object out = null;
        Object _jspx_out = null;
        PageContext _jspx_page_context = null;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    _jspx_page_context.handlePageException(var121);
                    return;
                }
            }

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

From source file:org.apache.nifi.processors.standard.HandleHttpRequest.java

@Override
public void onTrigger(final ProcessContext context, final ProcessSession session) throws ProcessException {
    try {/*from w ww.java 2  s . co m*/
        if (!initialized.get()) {
            initializeServer(context);
        }
    } catch (Exception e) {
        context.yield();
        throw new ProcessException("Failed to initialize the server", e);
    }

    final HttpRequestContainer container = containerQueue.poll();
    if (container == null) {
        return;
    }

    final long start = System.nanoTime();
    final HttpServletRequest request = container.getRequest();
    FlowFile flowFile = session.create();
    try {
        flowFile = session.importFrom(request.getInputStream(), flowFile);
    } catch (final IOException e) {
        getLogger().error("Failed to receive content from HTTP Request from {} due to {}",
                new Object[] { request.getRemoteAddr(), e });
        session.remove(flowFile);
        return;
    }

    final String charset = request.getCharacterEncoding() == null
            ? context.getProperty(URL_CHARACTER_SET).getValue()
            : request.getCharacterEncoding();

    final String contextIdentifier = UUID.randomUUID().toString();
    final Map<String, String> attributes = new HashMap<>();
    try {
        putAttribute(attributes, HTTPUtils.HTTP_CONTEXT_ID, contextIdentifier);
        putAttribute(attributes, "mime.type", request.getContentType());
        putAttribute(attributes, "http.servlet.path", request.getServletPath());
        putAttribute(attributes, "http.context.path", request.getContextPath());
        putAttribute(attributes, "http.method", request.getMethod());
        putAttribute(attributes, "http.local.addr", request.getLocalAddr());
        putAttribute(attributes, HTTPUtils.HTTP_LOCAL_NAME, request.getLocalName());
        final String queryString = request.getQueryString();
        if (queryString != null) {
            putAttribute(attributes, "http.query.string", URLDecoder.decode(queryString, charset));
        }
        putAttribute(attributes, HTTPUtils.HTTP_REMOTE_HOST, request.getRemoteHost());
        putAttribute(attributes, "http.remote.addr", request.getRemoteAddr());
        putAttribute(attributes, "http.remote.user", request.getRemoteUser());
        putAttribute(attributes, HTTPUtils.HTTP_REQUEST_URI, request.getRequestURI());
        putAttribute(attributes, "http.request.url", request.getRequestURL().toString());
        putAttribute(attributes, "http.auth.type", request.getAuthType());

        putAttribute(attributes, "http.requested.session.id", request.getRequestedSessionId());
        final DispatcherType dispatcherType = request.getDispatcherType();
        if (dispatcherType != null) {
            putAttribute(attributes, "http.dispatcher.type", dispatcherType.name());
        }
        putAttribute(attributes, "http.character.encoding", request.getCharacterEncoding());
        putAttribute(attributes, "http.locale", request.getLocale());
        putAttribute(attributes, "http.server.name", request.getServerName());
        putAttribute(attributes, HTTPUtils.HTTP_PORT, request.getServerPort());

        final Enumeration<String> paramEnumeration = request.getParameterNames();
        while (paramEnumeration.hasMoreElements()) {
            final String paramName = paramEnumeration.nextElement();
            final String value = request.getParameter(paramName);
            attributes.put("http.param." + paramName, value);
        }

        final Cookie[] cookies = request.getCookies();
        if (cookies != null) {
            for (final Cookie cookie : cookies) {
                final String name = cookie.getName();
                final String cookiePrefix = "http.cookie." + name + ".";
                attributes.put(cookiePrefix + "value", cookie.getValue());
                attributes.put(cookiePrefix + "domain", cookie.getDomain());
                attributes.put(cookiePrefix + "path", cookie.getPath());
                attributes.put(cookiePrefix + "max.age", String.valueOf(cookie.getMaxAge()));
                attributes.put(cookiePrefix + "version", String.valueOf(cookie.getVersion()));
                attributes.put(cookiePrefix + "secure", String.valueOf(cookie.getSecure()));
            }
        }

        if (queryString != null) {
            final String[] params = URL_QUERY_PARAM_DELIMITER.split(queryString);
            for (final String keyValueString : params) {
                final int indexOf = keyValueString.indexOf("=");
                if (indexOf < 0) {
                    // no =, then it's just a key with no value
                    attributes.put("http.query.param." + URLDecoder.decode(keyValueString, charset), "");
                } else {
                    final String key = keyValueString.substring(0, indexOf);
                    final String value;

                    if (indexOf == keyValueString.length() - 1) {
                        value = "";
                    } else {
                        value = keyValueString.substring(indexOf + 1);
                    }

                    attributes.put("http.query.param." + URLDecoder.decode(key, charset),
                            URLDecoder.decode(value, charset));
                }
            }
        }
    } catch (final UnsupportedEncodingException uee) {
        throw new ProcessException("Invalid character encoding", uee); // won't happen because charset has been validated
    }

    final Enumeration<String> headerNames = request.getHeaderNames();
    while (headerNames.hasMoreElements()) {
        final String headerName = headerNames.nextElement();
        final String headerValue = request.getHeader(headerName);
        putAttribute(attributes, "http.headers." + headerName, headerValue);
    }

    final Principal principal = request.getUserPrincipal();
    if (principal != null) {
        putAttribute(attributes, "http.principal.name", principal.getName());
    }

    final X509Certificate certs[] = (X509Certificate[]) request
            .getAttribute("javax.servlet.request.X509Certificate");
    final String subjectDn;
    if (certs != null && certs.length > 0) {
        final X509Certificate cert = certs[0];
        subjectDn = cert.getSubjectDN().getName();
        final String issuerDn = cert.getIssuerDN().getName();

        putAttribute(attributes, HTTPUtils.HTTP_SSL_CERT, subjectDn);
        putAttribute(attributes, "http.issuer.dn", issuerDn);
    } else {
        subjectDn = null;
    }

    flowFile = session.putAllAttributes(flowFile, attributes);

    final HttpContextMap contextMap = context.getProperty(HTTP_CONTEXT_MAP)
            .asControllerService(HttpContextMap.class);
    final boolean registered = contextMap.register(contextIdentifier, request, container.getResponse(),
            container.getContext());

    if (!registered) {
        getLogger().warn(
                "Received request from {} but could not process it because too many requests are already outstanding; responding with SERVICE_UNAVAILABLE",
                new Object[] { request.getRemoteAddr() });

        try {
            container.getResponse().setStatus(Status.SERVICE_UNAVAILABLE.getStatusCode());
            container.getResponse().flushBuffer();
            container.getContext().complete();
        } catch (final Exception e) {
            getLogger().warn("Failed to respond with SERVICE_UNAVAILABLE message to {} due to {}",
                    new Object[] { request.getRemoteAddr(), e });
        }

        session.remove(flowFile);
        return;
    }

    final long receiveMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start);
    session.getProvenanceReporter().receive(flowFile, HTTPUtils.getURI(attributes),
            "Received from " + request.getRemoteAddr() + (subjectDn == null ? "" : " with DN=" + subjectDn),
            receiveMillis);
    session.transfer(flowFile, REL_SUCCESS);
    getLogger().info("Transferring {} to 'success'; received from {}",
            new Object[] { flowFile, request.getRemoteAddr() });
}

From source file:org.dd4t.core.util.HttpUtils.java

public static String getCurrentURL(final HttpServletRequest request) {
    String url;// w w w .  j a  v  a2  s. com

    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;
}

From source file:org.dd4t.mvc.controllers.AbstractPageController.java

/**
 * All page requests are handled by this method. The page meta XML is
 * queried based on the request URI, the page meta XML contains the actual
 * view name to be rendered.//from   ww w.  ja  v a 2 s.c  o  m
 */
@RequestMapping(value = { "/**/*.html", "/**/*.txt", "/**/*.xml" }, method = { RequestMethod.GET,
        RequestMethod.HEAD })
public String showPage(Model model, HttpServletRequest request, HttpServletResponse response)
        throws IOException {
    final String urlToFetch = HttpUtils.appendDefaultPageIfRequired(HttpUtils.getCurrentURL(request));
    String url = adjustLocalErrorUrl(request, urlToFetch);
    url = HttpUtils.normalizeUrl(url);

    LOG.debug(">> {} page {} with dispatcher type {}",
            new Object[] { request.getMethod(), url, request.getDispatcherType().toString() });
    try {
        if (StringUtils.isEmpty(url)) {
            // url is not valid, throw an ItemNotFoundException
            throw new ItemNotFoundException("Local Page Url could not be resolved: " + urlToFetch
                    + " (probably publication url could not be resolved)");
        }

        Page pageModel = pageFactory.findPageByUrl(url, publicationResolver.getPublicationId());

        DateTime lastPublishDate = pageModel.getLastPublishedDate();

        response.setHeader(LAST_MODIFIED, createDateFormat().format(lastPublishDate.toDate()));

        model.addAttribute(Constants.REFERER, request.getHeader(HttpHeaders.REFERER));
        model.addAttribute(Constants.PAGE_MODEL_KEY, pageModel);
        model.addAttribute(Constants.PAGE_REQUEST_URI,
                HttpUtils.appendDefaultPageIfRequired(request.getRequestURI()));

        response.setContentType(HttpUtils.getContentTypeByExtension(url));
        return getPageViewName(pageModel);

    } catch (ItemNotFoundException e) {

        LOG.warn("Page with url '{}' could not be found.", url);
        response.sendError(HttpServletResponse.SC_NOT_FOUND);
    } catch (FactoryException e) {
        if (e.getCause() instanceof ItemNotFoundException) {
            LOG.warn("Page with url '{}' could not be found.", url);
            response.sendError(HttpServletResponse.SC_NOT_FOUND);
        } else {
            LOG.error("Factory Error.", e);
            response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        }
    }

    return null;
}

From source file:org.dd4t.mvc.controllers.AbstractPageController.java

private String adjustLocalErrorUrl(HttpServletRequest request, String url) {
    if (request.getDispatcherType() == DispatcherType.ERROR) {
        url = publicationResolver.getLocalPageUrl(url);
    }/*from  ww  w . j a  va2  s.com*/
    return url;
}

From source file:org.debux.webmotion.server.WebMotionServer.java

/**
 * Static resources management//from ww w. ja v a 2 s .c  om
 */
protected void doResource(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {

    // Suppress the static in path
    HttpServletRequest requestWrapper = new HttpServletRequestWrapper(request) {
        @Override
        public String getServletPath() {
            String servletPath = super.getServletPath();
            if (servletPath != null) {
                return servletPath.replaceFirst(PATH_STATIC, "");
            }
            return null;
        }

        @Override
        public String getPathInfo() {
            String pathInfo = super.getPathInfo();
            if (pathInfo != null) {
                return pathInfo.replaceFirst(PATH_STATIC, "");
            }
            return null;
        }

        @Override
        public String getRequestURI() {
            String requestURI = super.getRequestURI();
            if (requestURI != null) {
                return requestURI.replaceFirst(PATH_STATIC, "");
            }
            return null;
        }
    };

    // Dispatch on default servlet
    ServletContext servletContext = request.getServletContext();
    RequestDispatcher dispatcher = servletContext.getNamedDispatcher("default");

    DispatcherType dispatcherType = request.getDispatcherType();
    if (dispatcherType == DispatcherType.INCLUDE) {
        dispatcher.include(requestWrapper, response);
    } else {
        dispatcher.forward(requestWrapper, response);
    }
}