Esempio n. 1
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');
      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);
    }
  }
Esempio n. 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 java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    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("\n");
      out.write("  \n");
      out.write(" ");
      request.setCharacterEncoding("utf-8");
      out.write('\n');
      out.write(' ');
      movie.admin.filmBean gb = null;
      gb =
          (movie.admin.filmBean)
              _jspx_page_context.getAttribute("gb", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (gb == null) {
        gb = new movie.admin.filmBean();
        _jspx_page_context.setAttribute("gb", gb, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      movie.admin.film _film = null;
      _film =
          (movie.admin.film)
              _jspx_page_context.getAttribute("_film", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (_film == null) {
        _film = new movie.admin.film();
        _jspx_page_context.setAttribute("_film", _film, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspect(
          _jspx_page_context.findAttribute("_film"), request);
      out.write("\n");
      out.write(" \n");
      out.write("\n");
      out.write(" ");

      String action = request.getParameter("action");

      if (action.equals("list")) {
        ArrayList<film> films = gb.getDBlist();
        request.setAttribute("datas", films);
        pageContext.forward("admin_mode.jsp");
      }
      if (action.equals("back")) {
        ArrayList<film> films = gb.getDBlist();
        request.setAttribute("datas", films);
        pageContext.forward("admin_mode.jsp");
      } else if (action.equals("insert")) {
        if (gb.insertDB(_film)) {
          response.sendRedirect("film_control.jsp?action=list");
        } else throw new Exception("DB 입력 오류");
      } else if (action.equals("delete")) {

        if (gb.deleteDB(_film.getId_film())) {
          response.sendRedirect("film_control.jsp?action=list");
        } else throw new Exception("DB 삭제 오류");
      }
      // else if(action.equals("update")){
      // }
      else {
      }

      out.write("\n");
      out.write("    \n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>Insert title here</title>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Esempio n. 3
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('\n');
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      out.write('\n');
      if (_jspx_meth_c_005fset_005f1(_jspx_page_context)) return;
      out.write("\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("\t<title>日志管理</title>\n");
      out.write("\t<meta name=\"decorator\" content=\"default\"/>\n");
      out.write("\t<script type=\"text/javascript\">\n");
      out.write("\t\tfunction page(n,s){\n");
      out.write("\t\t\t$(\"#pageNo\").val(n);\n");
      out.write("\t\t\t$(\"#pageSize\").val(s);\n");
      out.write("\t\t\t$(\"#searchForm\").submit();\n");
      out.write("\t    \treturn false;\n");
      out.write("\t    }\n");
      out.write("\t</script>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("<!-- \t<ul class=\"nav nav-tabs\"> -->\n");
      out.write("\n");
      out.write("<!-- \t</ul> -->\n");
      out.write("\t");
      if (_jspx_meth_form_005fform_005f0(_jspx_page_context)) return;
      out.write('\n');
      out.write('	');
      if (_jspx_meth_sys_005fmessage_005f0(_jspx_page_context)) return;
      out.write("\n");
      out.write(
          "\t<table id=\"contentTable\" class=\"table table-striped table-bordered table-condensed\">\n");
      out.write(
          "\t\t<thead><tr><th>操作菜单</th><th>操作用户</th><th>所在公司</th><th>所在部门</th><th>URI</th><th>提交方式</th><th>操作者IP</th><th>操作时间</th></thead>\n");
      out.write("\t\t<tbody>");
      request.setAttribute("strEnter", "\n");
      request.setAttribute("strTab", "\t");
      out.write('\n');
      out.write('	');
      out.write('	');
      if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context)) return;
      out.write("\n");
      out.write("\t\t</tbody>\n");
      out.write("\t</table>\n");
      out.write("\t<div class=\"pagination\">");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${page}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</div>\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            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);
    }
  }
Esempio n. 4
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;
    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");
      pageContext = _jspxFactory.getPageContext(this, request, response, null, false, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("\r\n");

      java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy");
      request.setAttribute("year", sdf.format(new java.util.Date()));
      request.setAttribute("tomcatUrl", "http://tomcat.apache.org/");
      request.setAttribute("tomcatDocUrl", "/docs/");
      request.setAttribute("tomcatExamplesUrl", "/examples/");

      out.write("\r\n");
      out.write("<html lang=\"en\">\r\n");
      out.write("    <head>\r\n");
      out.write("        <title>");
      out.print(request.getServletContext().getServerInfo());
      out.write("</title>\r\n");
      out.write("        <link href=\"favicon.ico\" rel=\"icon\" type=\"image/x-icon\" />\r\n");
      out.write(
          "        <link href=\"favicon.ico\" rel=\"shortcut icon\" type=\"image/x-icon\" />\r\n");
      out.write("        <link href=\"tomcat.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("    </head>\r\n");
      out.write("\r\n");
      out.write("    <body>\r\n");
      out.write("        <div id=\"wrapper\">\r\n");
      out.write("            <div id=\"navigation\" class=\"curved container\">\r\n");
      out.write("                <span id=\"nav-home\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\">Home</a></span>\r\n");
      out.write("                <span id=\"nav-hosts\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\">Documentation</a></span>\r\n");
      out.write("                <span id=\"nav-config\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("config/\">Configuration</a></span>\r\n");
      out.write("                <span id=\"nav-examples\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatExamplesUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\">Examples</a></span>\r\n");
      out.write(
          "                <span id=\"nav-wiki\"><a href=\"http://wiki.apache.org/tomcat/FrontPage\">Wiki</a></span>\r\n");
      out.write("                <span id=\"nav-lists\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("lists.html\">Mailing Lists</a></span>\r\n");
      out.write("                <span id=\"nav-help\"><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("findhelp.html\">Find Help</a></span>\r\n");
      out.write("                <br class=\"separator\" />\r\n");
      out.write("            </div>\r\n");
      out.write("            <div id=\"asf-box\">\r\n");
      out.write("                <h1>");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.servletContext.serverInfo}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</h1>\r\n");
      out.write("            </div>\r\n");
      out.write("            <div id=\"upper\" class=\"curved container\">\r\n");
      out.write("                <div id=\"congrats\" class=\"curved container\">\r\n");
      out.write(
          "                    <h2>If you're seeing this, you've successfully installed Tomcat. Congratulations!</h2>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div id=\"notice\">\r\n");
      out.write("                    <img src=\"tomcat.png\" alt=\"[tomcat logo]\" />\r\n");
      out.write("                    <div id=\"tasks\">\r\n");
      out.write("                        <h3>Recommended Reading:</h3>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("security-howto.html\">Security Considerations HOW-TO</a></h4>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("manager-howto.html\">Manager Application HOW-TO</a></h4>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("cluster-howto.html\">Clustering/Session Replication HOW-TO</a></h4>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div id=\"actions\">\r\n");
      out.write("                    <div class=\"button\">\r\n");
      out.write(
          "                        <a class=\"container shadow\" href=\"/manager/status\"><span>Server Status</span></a>\r\n");
      out.write("                    </div>\r\n");
      out.write("                    <div class=\"button\">\r\n");
      out.write(
          "                        <a class=\"container shadow\" href=\"/manager/html\"><span>Manager App</span></a>\r\n");
      out.write("                    </div>\r\n");
      out.write("                    <div class=\"button\">\r\n");
      out.write(
          "                        <a class=\"container shadow\" href=\"/host-manager/html\"><span>Host Manager</span></a>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <!--\r\n");
      out.write("                <br class=\"separator\" />\r\n");
      out.write("                -->\r\n");
      out.write("                <br class=\"separator\" />\r\n");
      out.write("            </div>\r\n");
      out.write("            <div id=\"middle\" class=\"curved container\">\r\n");
      out.write("                <h3>Developer Quick Start</h3>\r\n");
      out.write("                <div class=\"col25\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <p><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("setup.html\">Tomcat Setup</a></p>\r\n");
      out.write("                        <p><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("appdev/\">First Web Application</a></p>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"col25\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <p><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("realm-howto.html\">Realms &amp; AAA</a></p>\r\n");
      out.write("                        <p><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("jndi-datasource-examples-howto.html\">JDBC DataSources</a></p>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"col25\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <p><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatExamplesUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\">Examples</a></p>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"col25\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write(
          "                        <p><a href=\"http://wiki.apache.org/tomcat/Specifications\">Servlet Specifications</a></p>\r\n");
      out.write(
          "                        <p><a href=\"http://wiki.apache.org/tomcat/TomcatVersions\">Tomcat Versions</a></p>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <br class=\"separator\" />\r\n");
      out.write("            </div>\r\n");
      out.write("            <div id=\"lower\">\r\n");
      out.write("                <div id=\"low-manage\" class=\"\">\r\n");
      out.write("                    <div class=\"curved container\">\r\n");
      out.write("                        <h3>Managing Tomcat</h3>\r\n");
      out.write(
          "                        <p>For security, access to the <a href=\"/manager/html\">manager webapp</a> is restricted.\r\n");
      out.write("                        Users are defined in:</p>\r\n");
      out.write("                        <pre>$CATALINA_HOME/conf/tomcat-users.xml</pre>\r\n");
      out.write(
          "                        <p>In Tomcat 7.0 access to the manager application is split between\r\n");
      out.write("                           different users. &nbsp; <a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("manager-howto.html\">Read more...</a></p>\r\n");
      out.write("                        <br />\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("RELEASE-NOTES.txt\">Release Notes</a></h4>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("changelog.html\">Changelog</a></h4>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("migration.html\">Migration Guide</a></h4>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("security.html\">Security Notices</a></h4>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div id=\"low-docs\" class=\"\">\r\n");
      out.write("                    <div class=\"curved container\">\r\n");
      out.write("                        <h3>Documentation</h3>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\">Tomcat 7.0 Documentation</a></h4>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("config/\">Tomcat 7.0 Configuration</a></h4>\r\n");
      out.write(
          "                        <h4><a href=\"http://wiki.apache.org/tomcat/FrontPage\">Tomcat Wiki</a></h4>\r\n");
      out.write(
          "                        <p>Find additional important configuration information in:</p>\r\n");
      out.write("                        <pre>$CATALINA_HOME/RUNNING.txt</pre>\r\n");
      out.write("                        <p>Developers may be interested in:</p>\r\n");
      out.write("                        <ul>\r\n");
      out.write(
          "                            <li><a href=\"http://tomcat.apache.org/bugreport.html\">Tomcat 7.0 Bug Database</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("api/index.html\">Tomcat 7.0 JavaDocs</a></li>\r\n");
      out.write(
          "                            <li><a href=\"http://svn.apache.org/repos/asf/tomcat/tc7.0.x/\">Tomcat 7.0 SVN Repository</a></li>\r\n");
      out.write("                        </ul>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div id=\"low-help\" class=\"\">\r\n");
      out.write("                    <div class=\"curved container\">\r\n");
      out.write("                        <h3>Getting Help</h3>\r\n");
      out.write("                        <h4><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("faq/\">FAQ</a> and <a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("lists.html\">Mailing Lists</a></h4>\r\n");
      out.write("                        <p>The following mailing lists are available:</p>\r\n");
      out.write("                        <ul>\r\n");
      out.write("                            <li id=\"list-announce\"><strong><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("lists.html#tomcat-announce\">tomcat-announce</a><br />\r\n");
      out.write(
          "                                Important announcements, releases, security vulnerability notifications. (Low volume).</strong>\r\n");
      out.write("                            </li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("lists.html#tomcat-users\">tomcat-users</a><br />\r\n");
      out.write("                                User support and discussion\r\n");
      out.write("                            </li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("lists.html#taglibs-user\">taglibs-user</a><br />\r\n");
      out.write("                                User support and discussion for <a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("taglibs/\">Apache Taglibs</a>\r\n");
      out.write("                            </li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("lists.html#tomcat-dev\">tomcat-dev</a><br />\r\n");
      out.write(
          "                                Development mailing list, including commit messages\r\n");
      out.write("                            </li>\r\n");
      out.write("                        </ul>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <br class=\"separator\" />\r\n");
      out.write("            </div>\r\n");
      out.write("            <div id=\"footer\" class=\"curved container\">\r\n");
      out.write("                <div class=\"col20\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <h4>Other Downloads</h4>\r\n");
      out.write("                        <ul>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("download-connectors.cgi\">Tomcat Connectors</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("download-native.cgi\">Tomcat Native</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("taglibs/\">Taglibs</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("deployer-howto.html\">Deployer</a></li>\r\n");
      out.write("                        </ul>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"col20\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <h4>Other Documentation</h4>\r\n");
      out.write("                        <ul>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("connectors-doc/\">Tomcat Connectors</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("connectors-doc/\">mod_jk Documentation</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("native-doc/\">Tomcat Native</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatDocUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("deployer-howto.html\">Deployer</a></li>\r\n");
      out.write("                        </ul>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"col20\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <h4>Get Involved</h4>\r\n");
      out.write("                        <ul>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("getinvolved.html\">Overview</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("svn.html\">SVN Repositories</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("lists.html\">Mailing Lists</a></li>\r\n");
      out.write(
          "                            <li><a href=\"http://wiki.apache.org/tomcat/FrontPage\">Wiki</a></li>\r\n");
      out.write("                        </ul>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"col20\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <h4>Miscellaneous</h4>\r\n");
      out.write("                        <ul>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("contact.html\">Contact</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("legal.html\">Legal</a></li>\r\n");
      out.write(
          "                            <li><a href=\"http://www.apache.org/foundation/sponsorship.html\">Sponsorship</a></li>\r\n");
      out.write(
          "                            <li><a href=\"http://www.apache.org/foundation/thanks.html\">Thanks</a></li>\r\n");
      out.write("                        </ul>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <div class=\"col20\">\r\n");
      out.write("                    <div class=\"container\">\r\n");
      out.write("                        <h4>Apache Software Foundation</h4>\r\n");
      out.write("                        <ul>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("whoweare.html\">Who We Are</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("heritage.html\">Heritage</a></li>\r\n");
      out.write(
          "                            <li><a href=\"http://www.apache.org\">Apache Home</a></li>\r\n");
      out.write("                            <li><a href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${tomcatUrl}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("resources.html\">Resources</a></li>\r\n");
      out.write("                        </ul>\r\n");
      out.write("                    </div>\r\n");
      out.write("                </div>\r\n");
      out.write("                <br class=\"separator\" />\r\n");
      out.write("            </div>\r\n");
      out.write("            <p class=\"copyright\">Copyright &copy;1999-");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${year}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(" Apache Software Foundation.  All Rights Reserved</p>\r\n");
      out.write("        </div>\r\n");
      out.write("    </body>\r\n");
      out.write("\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 {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }