⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system_005fsetting_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp.pages.LeftMenu.system_005fmanage.sysset;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class system_005fsetting_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus.release();
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fs_005fif_005ftest.release();
  }

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

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      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\n");
      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");

String cpath = request.getContextPath();

      out.write("\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/css_common1.css\" rel=\"stylesheet\"\r\n");
      out.write("\t\t\ttype=\"text/css\" />\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/mian.css\" rel=\"stylesheet\"\r\n");
      out.write("\t\t\ttype=\"text/css\" />\r\n");
      out.write("\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/jquery126.js\"></script>\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/effect.js\"></script>\r\n");
      out.write("\t\t<script language=\"JavaScript\">\r\n");
      out.write("$(function(){\r\n");
      out.write("\t  \taddInputEffect();\r\n");
      out.write("\t  });\r\n");
      out.write("\r\n");
      out.write("function selectChecked(thread_form){\r\n");
      out.write("\tvar valueStr=\"\";\r\n");
      out.write("\tvar a = thread_form.pvArray.length;\r\n");
      out.write("\r\n");
      out.write("\tfor (var i=0;i<a;i++){\r\n");
      out.write("\t\tif(thread_form.pidArray[i].value!=-1&&thread_form.pvArray[i].value!=-1){\r\n");
      out.write("\t\t\tvalueStr = valueStr + thread_form.pidArray[i].value + \"=\" +thread_form.pvArray[i].value + \"-\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(thread_form.pvArray[i].value==\"\"){\r\n");
      out.write("\t\t\talert('参数值不能为空');\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("  \tdocument.location.href='");
      out.print(cpath);
      out.write("/blackorred/Save.action?valueStr='+encodeURI(valueStr);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("//AJAX----------------------------------------------------------\r\n");
      out.write("\t\tvar http_request=null;\r\n");
      out.write("\t\tfunction getHTTPRequest(){\r\n");
      out.write("\t\tif(window.ActiveXObject){\r\n");
      out.write("\t        http_request = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
      out.write("\t     }\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("function selectChecked2(thread_form){\r\n");
      out.write("\tif(http_request==null){\r\n");
      out.write("  \t\t\t\t\tgetHTTPRequest();\r\n");
      out.write("  \t\t\t\t}\r\n");
      out.write("\tvar valueStr=\"\";\r\n");
      out.write("\tvar a = thread_form.pvArray.length;\r\n");
      out.write("\tfor (var i=0;i<a;i++){\r\n");
      out.write("\t\tif(thread_form.pidArray[i].value!=-1&&thread_form.pvArray[i].value!=-1){\r\n");
      out.write("\t\t\tvalueStr = valueStr + thread_form.pidArray[i].value + \"=\" +thread_form.pvArray[i].value + \"-\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(thread_form.pvArray[i].value==\"\"){\r\n");
      out.write("\t\t\talert('参数值不能为空');\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\t\r\n");
      out.write("\t  http_request.open(\"POST\",\"");
      out.print(cpath);
      out.write("/blackorred/Save2.action\",false);\r\n");
      out.write("  \t\thttp_request.onreadystatechange=getResult;\r\n");
      out.write("  \t\thttp_request.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\");\r\n");
      out.write("  \t\thttp_request.send(\"valueStr=\"+encodeURI(valueStr));\t\r\n");
      out.write("\r\n");
      out.write("  \t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function getResult(){//处理ajax返回\r\n");
      out.write("\t\t  if(http_request!=null){\r\n");
      out.write("\t\t    if(http_request.readystate==4){\r\n");
      out.write("\t\t      if(http_request.status==200){   \r\n");
      out.write("\t\t        alert(http_request.responseText);\r\n");
      out.write("\t\t      }\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t  }\t\t  \t\t\t\r\n");
      out.write("  \t\t}\t\r\n");
      out.write("\t</script>\r\n");
      out.write("\t</head>\r\n");
      out.write("\r\n");
      out.write("\t<body leftmargin=\"0\" topmargin=\"0\" class=\"bgOffice\" style=\"width:100%;overflow-x:hidden;overflow-y:auto\">\r\n");
      out.write("\t\t<form>\r\n");
      out.write("\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:100%;height:100%;\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td valign=\"top\" colspan=\"4\" style=\"border:none\">\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" class=\"title\" width=\"100%\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td style=\"height:25px\">\r\n");
      out.write("\t\t\t\t\t\t系统全局设置\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"right\">\r\n");
      out.write("\t\t\t\t\t\t<input type=\"button\" value=\"保 存\" class=\"input02\"\r\n");
      out.write("\t\t\t\t\t\t\tonclick=\"selectChecked2(this.form)\" />\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t</table>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td style=\"height:100%\">\r\n");
      out.write("\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table02 inputLine\">\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"hidden\" name=\"pidArray\" value=\"-1\" />\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"hidden\" name=\"pvArray\" value=\"-1\" />\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t");
      if (_jspx_meth_s_005fiterator_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write("\t\t</form>\r\n");
      out.write("\r\n");
      out.write("\t\t");
      if (_jspx_meth_s_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t");
      if (_jspx_meth_s_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t</body>\r\n");
      out.write("\t<script language=\"javascript\"><!--\r\n");
      out.write("\t//datacolor(\"表格名称\",\"奇数行背景\",\"偶数行背景\",\"鼠标经过背景\",\"点击后背景\");\r\n");
      out.write("\tdatacolor(\"datacolor\",\"#fff\",\"#f7f7f7\",\"#d1e6fe\",\"#e1e9f2\");\r\n");
      out.write("--></script>\r\n");
      out.write("</html>\r\n");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -