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

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

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

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      out.write('\r');
      out.write('\n');

      String path = request.getContextPath();
      String basePath =
          request.getScheme()
              + "://"
              + request.getServerName()
              + ":"
              + request.getServerPort()
              + path;
      request.setAttribute("basePath", basePath);

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>API管理</title>\r\n");
      out.write("    ");
      out.write("<!-- Common JS Lib & CSS Lib -->\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/webResources/js/easyui/jquery-1.4.4.min.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/webResources/js/common.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src='");
      if (_jspx_meth_c_005furl_005f0(_jspx_page_context)) return;
      out.write("'></script>\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href='");
      if (_jspx_meth_c_005furl_005f1(_jspx_page_context)) return;
      out.write("'> \r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href='");
      if (_jspx_meth_c_005furl_005f2(_jspx_page_context)) return;
      out.write("'>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/webResources/js/easyui/locale/easyui-lang-zh_CN.js\"></script>  \r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href='");
      if (_jspx_meth_c_005furl_005f3(_jspx_page_context)) return;
      out.write("' />\r\n");
      out.write("<script src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/webResources/js/validator.js\"></script>\r\n");
      out.write("<script src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/webResources/My97DatePicker/WdatePicker.js\"></script>");
      out.write("\r\n");
      out.write("\t<script>\r\n");
      out.write("        \r\n");
      out.write("        function addNew(){\r\n");
      out.write("        \tvar dt=new Date();\r\n");
      out.write("            var ah = screen.availHeight - 30;\r\n");
      out.write("    \t\tvar aw = screen.availWidth - 10;\r\n");
      out.write("    \t\tvar xc = (aw - 500) / 2;\r\n");
      out.write("    \t\tvar yc = (ah - 600) / 2;\r\n");
      out.write("            openparentWindow(\"newWindow\",\"添加\",xc,yc,\"800\",\"500\",\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(
          "/jsp/api/apiInitEdit.action?flag=add&dt=\"+dt.getTime(),true,true,true,false,true,\"win\");\r\n");
      out.write("        }\r\n");
      out.write("        function edit(row_Id){\r\n");
      out.write("        \tvar dt=new Date();\r\n");
      out.write("            var ah = screen.availHeight - 30;\r\n");
      out.write("    \t\tvar aw = screen.availWidth - 10;\r\n");
      out.write("    \t\tvar xc = (aw - 500) / 2;\r\n");
      out.write("    \t\tvar yc = (ah - 600) / 2;\r\n");
      out.write("            openparentWindow(\"newWindow\",\"修改\",xc,yc,\"800\",\"500\",\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(
          "/jsp/api/apiInitEdit.action?flag=mod&api.id=\"+row_Id,true,true,true,false,true,\"win\");\r\n");
      out.write("        }\r\n");
      out.write("        function view(row_Id){\r\n");
      out.write("        \tvar dt=new Date();\r\n");
      out.write("            var ah = screen.availHeight - 30;\r\n");
      out.write("    \t\tvar aw = screen.availWidth - 10;\r\n");
      out.write("    \t\tvar xc = (aw - 400) / 2;\r\n");
      out.write("    \t\tvar yc = (ah - 350) / 2;\r\n");
      out.write("            openparentWindow(\"newWindow\",\"查看\",xc,yc,\"600\",\"400\",\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(
          "/jsp/api/apiView.action?api.id=\"+row_Id+\"&dt=\"+dt.getTime(),true,true,true,false,true,\"win\");\r\n");
      out.write("        }\r\n");
      out.write("        function close_win(){\r\n");
      out.write("        \t$(\"#newWindow\").window(\"close\");\r\n");
      out.write("        }\r\n");
      out.write("        function reloadDate(){\r\n");
      out.write("            $('#pagination').datagrid('clearSelections');\r\n");
      out.write("        \tsearch_api();\r\n");
      out.write("        }\r\n");
      out.write("        function del(){\r\n");
      out.write("        \tvar rows = $('#pagination').datagrid('getSelections');\r\n");
      out.write("        \tvar ids = \"\";\r\n");
      out.write("\t\t\tfor(var i=0;i<rows.length;i++){\r\n");
      out.write("\t\t\t\tids += rows[i].id+\"|\";\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\tif(rows.length<1){\r\n");
      out.write("\t\t\t    $.messager.alert('提示','至少选择一项删除!');\r\n");
      out.write("\t\t\t}else{\r\n");
      out.write("\t\t\t    $.messager.confirm(\"删除\",\"确定要删除吗?\",function(result){\r\n");
      out.write("\t\t\t        if(result){\r\n");
      out.write("\t\t                $.ajax({\r\n");
      out.write("\t\t                \turl : \"apiDel.action\",\r\n");
      out.write("\t\t                \ttype: 'post',\r\n");
      out.write("\t\t                    dataType: 'json',\r\n");
      out.write("\t\t                    async : false,\r\n");
      out.write("\t\t                    data:{ \r\n");
      out.write("\t\t                    \tids : ids\r\n");
      out.write("\t\t                    },\r\n");
      out.write("\t\t                    error: function(){\r\n");
      out.write("\t\t                    \t$.messager.alert('错误','删除时出错!');\r\n");
      out.write("\t\t                    },\r\n");
      out.write("\t\t                    success: function(data){\r\n");
      out.write("\t\t                        if(data.result == 'true'){\r\n");
      out.write("\t\t                        \t$.messager.alert('提示','删除成功!');\r\n");
      out.write("\t\t                        \tsearch_api();\r\n");
      out.write("\t\t                        }else if(data.result == 'false'){\r\n");
      out.write("\t\t                        \t$.messager.alert('错误','删除时出错!');\r\n");
      out.write("\t\t                        }else if(data.result == 'have_sons') {\r\n");
      out.write(
          "\t\t                        \t$.messager.alert('错误',data.name + '存在子级别,无法删除!');\r\n");
      out.write("\t\t                        }\r\n");
      out.write("\t\t                    }\r\n");
      out.write("\t\t                });\r\n");
      out.write("\t\t\t        }\r\n");
      out.write("\t\t\t    });\r\n");
      out.write("\t\t\t}\r\n");
      out.write("        }\r\n");
      out.write("        \r\n");
      out.write("        //清除查询表单中的搜索条件\r\n");
      out.write("        function clear_form(ff){\r\n");
      out.write("            var elements = ff.elements;\r\n");
      out.write("            for(i=0;i<elements.length;i++){\r\n");
      out.write("                var element = elements[i];\r\n");
      out.write("                if(element.type==\"text\"){\r\n");
      out.write("                    element.value = \"\";\r\n");
      out.write(
          "                }else if(element.type==\"radio\" || element.type==\"checkbox\"){\r\n");
      out.write("                \telement.checked = false;\r\n");
      out.write("                }\r\n");
      out.write("            }\r\n");
      out.write("            var level_value_1 = $('#level_name_1').combobox('getValue');\r\n");
      out.write("            $('#level_name_1').combobox('unselect', level_value_1);\r\n");
      out.write("            var level_value_2 = $('#level_name_2').combobox('getValue');\r\n");
      out.write("            $('#level_name_2').combobox('unselect', level_value_2);\r\n");
      out.write("        }\r\n");
      out.write("        \r\n");
      out.write("        //双击单选按钮,取消选中状态\r\n");
      out.write("        function cancel_selected(radio) {\r\n");
      out.write("        \tif($(radio).attr('checked')){\r\n");
      out.write("        \t\t$(radio).removeAttr('checked');\r\n");
      out.write("        \t}else{\r\n");
      out.write("        \t\t$(radio).attr('checked',true);\r\n");
      out.write("        \t}\r\n");
      out.write("        }\r\n");
      out.write("        \r\n");
      out.write("        \r\n");
      out.write("        function search_api(){\r\n");
      out.write("        \tvar queryParams = {\r\n");
      out.write("\t\t\t\t\"api.name\": $(\"#name\").val(),\r\n");
      out.write("\t\t\t\t\"api.createUserName\" : $('#createUserName').val(),\r\n");
      out.write("\t\t\t\t\"level_code_1\" : $('#level_name_1').combobox('getValue'),\r\n");
      out.write("\t\t\t\t\"level_code_2\" : $('#level_name_2').combobox('getValue')\r\n");
      out.write("\t\t\t};\r\n");
      out.write("        \t$('#pagination').datagrid('options').queryParams = queryParams;\r\n");
      out.write("        \t$('#pagination').datagrid('clearSelections');\r\n");
      out.write("        \t$(\"#pagination\").datagrid('load');\r\n");
      out.write("        }\r\n");
      out.write("        \r\n");
      out.write("        //获得分类名称通过id\r\n");
      out.write("        function findTypeNameById(level, rec) {\r\n");
      out.write("       \t\tvar type_name = \"\";\r\n");
      out.write("       \t\t$.ajax({\r\n");
      out.write("       \t\t    url: '");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/jsp/api/type/findTypeNameById.action',\r\n");
      out.write("       \t\t    type: 'post',\r\n");
      out.write("       \t\t    dataType: 'json',\r\n");
      out.write("       \t\t    async : false,\r\n");
      out.write("       \t\t    data:{\r\n");
      out.write("       \t\t    \t\"api.type_id\" : rec.type_id,\r\n");
      out.write("       \t\t    \t\"level\" : level //标记是一级还是二级\r\n");
      out.write("       \t\t    },\r\n");
      out.write("       \t\t    error: function(){\r\n");
      out.write("       \t\t        //alert('获取部门类型出错!');\r\n");
      out.write("       \t\t    },\r\n");
      out.write("       \t\t    success: function(data){\r\n");
      out.write("       \t\t    \ttype_name = data.name;\r\n");
      out.write("       \t\t    }\r\n");
      out.write("       \t\t});\r\n");
      out.write("       \t  \treturn type_name;\r\n");
      out.write("        }\r\n");
      out.write("        \r\n");
      out.write("      \t//利用ajax获得所有一级分类名称,并将这些值赋给下拉框\r\n");
      out.write("        function setComboboxValues() {\r\n");
      out.write("        \t$.ajax({\r\n");
      out.write("\t\t\t\t    url: \"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/jsp/api/type/gainAllTypeNames.action\",\r\n");
      out.write("                \ttype: 'post',\r\n");
      out.write("                    dataType: 'json',\r\n");
      out.write("                    async : false,\r\n");
      out.write("                    data : {\r\n");
      out.write("                    \tlevel : '1&2'\r\n");
      out.write("                    },\r\n");
      out.write("\t\t\t\t    success: function(json){\r\n");
      out.write("\t\t\t\t\t    $(\"#level_name_1\").combobox({\r\n");
      out.write("\t\t\t\t\t\t    data:json.level_1,\r\n");
      out.write("\t\t\t\t\t\t    valueField:'code',\r\n");
      out.write("\t\t\t\t\t\t    textField:'name',\r\n");
      out.write("\t\t\t\t\t\t    editable:false,\r\n");
      out.write("\t\t\t\t\t\t    onSelect:function(params){\r\n");
      out.write("\t\t\t\t\t\t    \t//当选择事件触发时\r\n");
      out.write("\t\t\t      \t            $.get('");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/jsp/api/type/gainAllTypeNames.action',\r\n");
      out.write("\t\t\t      \t            \t\t{level : '2', oneLevelCode : params.code},\r\n");
      out.write("\t\t\t      \t            \t\tfunction(data){\r\n");
      out.write("\t\t\t      \t            \t\t\t//为第二级下拉框赋对应的值\r\n");
      out.write(
          "\t\t\t      \t            \t\t\t$(\"#level_name_2\").combobox(\"clear\").combobox('loadData',data.level_2); \r\n");
      out.write("\t\t\t      \t            \t\t},\r\n");
      out.write("\t\t\t      \t            \t\t'json'\r\n");
      out.write("\t\t\t      \t            );\r\n");
      out.write("\r\n");
      out.write("\t\t\t      \t         }\r\n");
      out.write("\t\t\t\t\t    });\r\n");
      out.write("\t\t\t\t\t    \r\n");
      out.write("\t\t\t\t\t    $(\"#level_name_2\").combobox({\r\n");
      out.write("\t\t\t\t\t\t    data:json.level_2,\r\n");
      out.write("\t\t\t\t\t\t    valueField:'code',\r\n");
      out.write("\t\t\t\t\t\t    textField:'name',\r\n");
      out.write("\t\t\t\t\t\t    editable:false\r\n");
      out.write("\t\t\t\t\t    });\r\n");
      out.write("\t\t\t\t    }\r\n");
      out.write("\t\t\t});\r\n");
      out.write("        }\r\n");
      out.write("      \t\r\n");
      out.write("      \t\r\n");
      out.write("        $(function(){\r\n");
      out.write("        \t//初始化下拉框的值\r\n");
      out.write("        \tsetComboboxValues();\r\n");
      out.write("        \t\r\n");
      out.write("        \t//加载datagrid数据\r\n");
      out.write("\t\t\t$('#pagination').datagrid({\r\n");
      out.write("\t\t\t\ttitle:'列表',\r\n");
      out.write("\t\t\t\ticonCls:'icon-save',\r\n");
      out.write("\t\t\t\tnowrap: false,\r\n");
      out.write("\t\t\t\tstriped: true,\r\n");
      out.write("\t\t\t\tcollapsible:true,\r\n");
      out.write("\t\t\t\turl:'apiQuery.action',\r\n");
      out.write("\t\t\t\tqueryParams:{\r\n");
      out.write("\t\t\t\t\t\"api.name\": $(\"#name\").val()\r\n");
      out.write("\t\t\t\t},\r\n");
      out.write("\t\t\t\tidField:'id',\r\n");
      out.write("\t\t\t\tremoteSort: false,\r\n");
      out.write("\t\t\t\tfrozenColumns:[[\r\n");
      out.write("\t\t\t\t    {field:'id',checkbox:true}\r\n");
      out.write("\t\t\t\t]],\r\n");
      out.write("\t\t\t\tcolumns:[[\r\n");
      out.write("\t\t\t\t\t\t\t{field:'name',title:'名称',width:100},\r\n");
      out.write(
          "\t\t\t\t\t\t\t{field:'one_level_name',title:'一级分类',width:100,formatter:function(value,rec){\r\n");
      out.write("\t\t\t\t\t\t\t\treturn findTypeNameById('1', rec);\r\n");
      out.write("\t\t\t\t\t\t\t}},\r\n");
      out.write(
          "\t\t\t\t\t\t\t{field:'second_level_name',title:'二级分类',width:100,formatter:function(value,rec){\r\n");
      out.write("\t\t\t\t\t\t\t\treturn findTypeNameById('2', rec);\r\n");
      out.write("\t\t\t\t\t\t\t}},\r\n");
      out.write("\t\t\t\t\t\t\t{field:'createUserName',title:'创建人',width:100},\r\n");
      out.write(
          "\t\t\t\t          \t{field:'op',title:'操作',width:100,formatter:function(value,rec){\r\n");
      out.write(
          "\t\t\t\t\t\t\t\treturn \"<span style='color:red;cursor:hand' onclick=\\\"edit('\"+rec.id+\"')\\\">编辑</span>\";\r\n");
      out.write("                          \t}}\r\n");
      out.write("\t\t\t\t        ]],\r\n");
      out.write("\t\t\t\tpagination:true,\r\n");
      out.write("\t\t\t\tonLoadSuccess:tabOnloadSuccess,\r\n");
      out.write("\t\t\t\tonLoadError:tabOnloadSuccess,\r\n");
      out.write("\t\t\t\trownumbers:true,\r\n");
      out.write("\t\t\t\tpageList:[10,20,30],\r\n");
      out.write("\t\t\t\tonHeaderContextMenu: function(e, field){\r\n");
      out.write("\t\t\t\t\te.preventDefault();\r\n");
      out.write("\t\t\t\t\tif (!$('#tmenu').length){\r\n");
      out.write("\t\t\t\t\t\tcreateColumnMenu();\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t$('#tmenu').menu('show', {\r\n");
      out.write("\t\t\t\t\t\tleft:e.pageX,\r\n");
      out.write("\t\t\t\t\t\ttop:e.pageY\r\n");
      out.write("\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t});\r\n");
      out.write("\t\t});\r\n");
      out.write("\r\n");
      out.write("        var titles = new Array();\r\n");
      out.write("        function createColumnMenu(){\r\n");
      out.write(
          "\t\t\tvar tmenu = $('<div id=\"tmenu\" style=\"width:150px;\"></div>').appendTo('body');\r\n");
      out.write("\t\t\tvar fields = $('#pagination').datagrid('getColumnFields');\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tfor(var i=0; i<fields.length; i++){\r\n");
      out.write("\t\t\t\tvar option = $('#pagination').datagrid('getColumnOption',fields[i]);\r\n");
      out.write("\t\t\t\tvar obj = {};\r\n");
      out.write("\t\t\t\tobj.title = option.title;\r\n");
      out.write("\t\t\t\tobj.field = fields[i];\r\n");
      out.write("\t\t\t\ttitles[i] = obj;\r\n");
      out.write("\t\t\t}\t\t\t\r\n");
      out.write("\t\t\tfor(var i=0; i<titles.length; i++){\r\n");
      out.write(
          "\t\t\t\t$('<div iconCls=\"icon-ok\"/>').html(titles[i].title).appendTo(tmenu);\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\ttmenu.menu({\r\n");
      out.write("\t\t\t\tonClick: function(item){\r\n");
      out.write("\t\t\t\t\tif (item.iconCls=='icon-ok'){\r\n");
      out.write("\t\t\t\t\t\tvar field;\r\n");
      out.write("\t\t\t\t\t\tfor(var i=0; i<titles.length; i++){\r\n");
      out.write("\t\t\t\t\t\t\tif(titles[i].title==item.text){\r\n");
      out.write("\t\t\t\t\t\t\t\tfield = titles[i].field;\r\n");
      out.write("\t\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t$('#pagination').datagrid('hideColumn', field);\r\n");
      out.write("\t\t\t\t\t\ttmenu.menu('setIcon', {\r\n");
      out.write("\t\t\t\t\t\t\ttarget: item.target,\r\n");
      out.write("\t\t\t\t\t\t\ticonCls: 'icon-empty'\r\n");
      out.write("\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t} else {\r\n");
      out.write("\t\t\t\t\t\tvar field;\r\n");
      out.write("\t\t\t\t\t\tfor(var i=0; i<titles.length; i++){\r\n");
      out.write("\t\t\t\t\t\t\tif(titles[i].title==item.text){\r\n");
      out.write("\t\t\t\t\t\t\t\tfield = titles[i].field;\r\n");
      out.write("\t\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t$('#pagination').datagrid('showColumn', field);\r\n");
      out.write("\t\t\t\t\t\ttmenu.menu('setIcon', {\r\n");
      out.write("\t\t\t\t\t\t\ttarget: item.target,\r\n");
      out.write("\t\t\t\t\t\t\ticonCls: 'icon-ok'\r\n");
      out.write("\t\t\t\t\t\t});\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t});\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t$(window).resize(function(){\r\n");
      out.write("            $('#pagination').datagrid('resize',{\r\n");
      out.write("            \twidth: document.body.clientWidth-20\r\n");
      out.write("            });\r\n");
      out.write("        });\r\n");
      out.write("\t\t\r\n");
      out.write("    </script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("function doReturnOrClose(backtimes) {\r\n");
      out.write("    if (this.parent != null && this.opener == null) {\r\n");
      out.write("        history.go(backtimes);\r\n");
      out.write("    }\r\n");
      out.write("    else {\r\n");
      out.write("        window.close();\r\n");
      out.write("    }\r\n");
      out.write("}\r\n");
      out.write("function showError() {\r\n");
      out.write("  if (document.getElementById(\"errorMessages\") != null) {\r\n");
      out.write(
          "            document.getElementById(\"errorMessages\").style.display = 'block';\r\n");
      out.write("        }\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("<div class=\"pages_right_main\">\r\n");
      out.write("<!-- \r\n");
      out.write("<div class=\"location\">\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td class=\"header01\"></td>\r\n");
      out.write("\t\t<td class=\"headerbg\" valign=\"middle\" align=\"left\">&nbsp;<img src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/webResources/themes/");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${curr_user.cssId}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/images/default/location_bg_01.jpg\" /><edp:showCurrPath moduleCode=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currModuleCode}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" customPath=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${curr_path}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"/>&nbsp;\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t\t<td class=\"header01\">\r\n");
      out.write("\t\t<div style=\"cursor: hand; width: 100%; height: 100%;\" title=\"查看异常\"\r\n");
      out.write("\t\t\tonclick='javascript:showError();'> </div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t\t<td class=\"header02\">\r\n");
      out.write("\t\t<div style=\"cursor: hand; width: 100%; height: 100%;\" title=\"页面回退\"\r\n");
      out.write("\t\t\tonclick='javascript:doReturnOrClose(-1);'></div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</div> -->\r\n");
      out.write("<table width=\"100%\" style=\"height:95%\" border=\"0\" cellspacing=\"0\"\r\n");
      out.write("\tcellpadding=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td class=\"content0201\"></td>\r\n");
      out.write("\t\t<td valign=\"top\" height=\"100%\">");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<form name=\"myform\" method=\"post\">\r\n");
      out.write("\t<div class=\"submitdata\">\r\n");
      out.write("\t\t<table width=\"100%\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<th width=\"5%\">创建人:</th>\r\n");
      out.write(
          "\t\t\t\t<td width=\"25%\"><input name=\"createUserName\" id=\"createUserName\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${api.createUserName}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" type=\"text\"></td>\r\n");
      out.write("\t\t\t\t<th width=\"5%\">API名称:</th>\r\n");
      out.write("\t\t\t\t<td width=\"25%\"><input name=\"api\" id=\"name\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${api.name}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" type=\"text\"></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<th width=\"5%\">一级分类:</th>\r\n");
      out.write("\t\t\t\t<td width=\"25%\">\r\n");
      out.write(
          "\t\t\t\t\t<select id=\"level_name_1\" style=\"width:200px;\" onchange=\"setSecondValue(this)\">\r\n");
      out.write("\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<th width=\"5%\">二级分类:</th>\r\n");
      out.write("\t\t\t\t<td width=\"25%\">\r\n");
      out.write("\t\t\t\t\t<select id=\"level_name_2\" style=\"width:200px;\">\r\n");
      out.write("\t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td colspan=\"4\" align=\"center\">\r\n");
      out.write(
          "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"search_api()\" iconCls=\"icon-search\">查询</a>&nbsp;\r\n");
      out.write(
          "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"clear_form(document.myform);\" iconCls=\"icon-undo\">清空</a>&nbsp;\t\t\t\t\r\n");
      out.write(
          "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"addNew();\" iconCls=\"icon-add\">添加</a>&nbsp;\r\n");
      out.write(
          "\t\t\t\t<a href=\"###\" class=\"easyui-linkbutton\" onclick=\"del();\" iconCls=\"icon-remove\">删除</a>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t\t<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td>\r\n");
      out.write(
          "\t\t\t\t<div id=\"pagination\" style=\"background:#efefef;border:1px solid #ccc;\">\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("</form>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</td>\r\n");
      out.write("<td class=\"content0203\"></td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</div>");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Exemple #2
0
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

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

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

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

      String path = request.getContextPath();
      String basePath =
          request.getScheme()
              + "://"
              + request.getServerName()
              + ":"
              + request.getServerPort()
              + path
              + "/";

      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("  <head>\r\n");
      out.write("    <base href=\"");
      out.print(basePath);
      out.write("\">\r\n");
      out.write("    \r\n");
      out.write("    <title>My JSP 'index.jsp' starting page</title>\r\n");
      out.write("\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("\t<meta http-equiv=\"expires\" content=\"0\">    \r\n");
      out.write("\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n");
      out.write("\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n");
      out.write("\t<!--\r\n");
      out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
      out.write("\t-->\r\n");
      out.write("  </head>\r\n");
      out.write("  \r\n");
      out.write("  <body>\r\n");
      out.write("    访问路径无效!<br>\r\n");
      out.write("  </body>\r\n");
      out.write("</html>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }