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

📄 showuser_jsp.java

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

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

public final class showuser_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_005fif_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _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());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fif_005ftest.release();
    _005fjspx_005ftagPool_005fs_005felse.release();
    _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus.release();
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.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");

	String cpath=request.getContextPath();

      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");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\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("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/page.js\"></script>\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>\t\t\r\n");
      out.write("\t\t<script language=\"JavaScript\">\r\n");
      out.write("<!--\r\n");
      out.write("$(function(){\r\n");
      out.write("\taddInputEffect();  \t\r\n");
      out.write("});\r\n");
      out.write("\r\n");
      out.write("var  strCode;\r\n");
      out.write("//判断文本框是否为空\r\n");
      out.write(" function str_is_null(str)\r\n");
      out.write("{\r\n");
      out.write("  if( trim_spaces(str,\"both\").length ==0 )\r\n");
      out.write("      return true;\r\n");
      out.write("  else\r\n");
      out.write("  return false;\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function checkAll(e, itemName)\r\n");
      out.write("{\r\n");
      out.write("  var aa = document.getElementsByName(itemName);\r\n");
      out.write("  for (var i=0; i<aa.length; i++)\r\n");
      out.write("   aa[i].checked = e.checked;\r\n");
      out.write("}\r\n");
      out.write("function checkItem(e, allName)\r\n");
      out.write("{\r\n");
      out.write("  var all = document.getElementsByName(allName)[0];\r\n");
      out.write("  if(!e.checked) all.checked = false;\r\n");
      out.write("  else\r\n");
      out.write("  {\r\n");
      out.write("    var aa = document.getElementsByName(e.name);\r\n");
      out.write("    for (var i=0; i<aa.length; i++)\r\n");
      out.write("     if(!aa[i].checked) return;\r\n");
      out.write("    all.checked = true;\r\n");
      out.write("  }\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//去空格\r\n");
      out.write("function trim_spaces(str,from_where)\r\n");
      out.write("{\r\n");
      out.write("\tvar temp_string=new String(str);\r\n");
      out.write("\tif (arguments.length == 0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tfrom_where = \"BOTH\";\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tif (from_where.toUpperCase() == \"LEFT\" || from_where.toUpperCase() == \"BOTH\")\r\n");
      out.write("\t{\r\n");
      out.write("\t\twhile (temp_string.substring(0,1) ==\" \")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\ttemp_string = temp_string.substring(1);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tif (from_where.toUpperCase() == \"RIGHT\" || from_where.toUpperCase() == \"BOTH\")\r\n");
      out.write("\t{\r\n");
      out.write("\t\twhile (temp_string.substr(temp_string.length-1,1) ==\" \")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\ttemp_string = temp_string.substring(0,temp_string.length - 1);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\treturn temp_string;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function checkCount() {\r\n");
      out.write("\tvar intCount=0;\r\n");
      out.write("\tif (document.thread_form.thread_radio!=null){\r\n");
      out.write("\tif(document.thread_form.thread_radio.length>1) {\r\n");
      out.write("\t\tfor(i=0;i< document.thread_form.thread_radio.length;i++) {\r\n");
      out.write("\t\t\tif(document.thread_form.thread_radio[i].checked)\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\tstrCode=document.thread_form.thread_radio[i].value;\r\n");
      out.write("\t\t\t\tintCount=intCount+1;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t} else {\r\n");
      out.write("\t\tif(document.thread_form.thread_radio.checked)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tstrCode=document.thread_form.thread_radio.value;\r\n");
      out.write("\t\t\tintCount++;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t}\r\n");
      out.write("\treturn intCount;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function thread_add() {\r\n");
      out.write("\tif(document.getElementById(\"my\").value ==\"\" || document.getElementById(\"my\").value ==null ){\r\n");
      out.write("\t\talert(\"当前没有选择技能组!\");\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("\tif(document.getElementById(\"my\").value !=null ){\r\n");
      out.write("\t\tvar groupId = document.getElementById(\"my\").value;\r\n");
      out.write("\t}\r\n");
      out.write("\twindow.top.frames['left'].openWindows(\"");
      out.print(cpath);
      out.write("/skillgroup/showAddUser.action?groupId=\"+groupId+\"&windowId=sysmanage.showaddusertoskillgroup\",\"显示添加到技能组的用户\",\"sysmanage.showaddusertoskillgroup\",window,\"system.skillgroup\");\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function thread_delete() {\r\n");
      out.write("\tvar intCount=checkCount();\r\n");
      out.write("\tvar array = new Array();\r\n");
      out.write("\tvar i = 0;\r\n");
      out.write("\tvar groupId = document.getElementById(\"my\").value;\r\n");
      out.write("\tif(intCount<=0) {\r\n");
      out.write("\t\talert(\"请选择一条记录!\");\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t} else{\r\n");
      out.write("\t\tif(document.thread_form.thread_radio.length>1){\r\n");
      out.write("\t\t\tfor(var j = 0;j<document.thread_form.thread_radio.length;j++){\r\n");
      out.write("\t    \t if(document.thread_form.thread_radio[j].checked==true){\r\n");
      out.write("\t         array[i++]=document.thread_form.thread_radio[j].value;\t                  \t\r\n");
      out.write("\t         }\r\n");
      out.write("    \t }\r\n");
      out.write("\t\t}else{\r\n");
      out.write("\t\t\tarray = document.getElementById('thread_radio').value;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif (confirm(\"确定删除该坐席吗?\") == true){\r\n");
      out.write("\t\t\tdocument.thread_form.action=\"");
      out.print(cpath);
      out.write("/skillgroup/DelUserFromSkillGroup.action?skuserId=\"+array;\r\n");
      out.write("\t\t\tgosubmit(document.thread_form);\r\n");
      out.write("\t\t\twindow.parent.frames[\"skillgroup\"].checked(groupId);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t} \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function refresh(groupId){\r\n");
      out.write("\tdocument.form.action=\"");
      out.print(cpath);
      out.write("/skillgroup/ShowUserFromskillGroupInfo.action\";\r\n");
      out.write("\tdocument.form.groupId.value = groupId;\r\n");
      out.write("\tgosubmit(document.form);\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</script>\r\n");
      out.write("\t</head>\r\n");
      out.write("\t<body leftmargin=\"0\" topmargin=\"0\"  style=\"width:100%;\" class=\"bgOffice\">\r\n");
      out.write("\t\t<form method=\"post\" name=\"thread_form\">\r\n");
      out.write("\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td colspan=\"2\" valign=\"top\">\r\n");
      out.write("\t\t\t\t\t\t<table width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"\tclass=\"bgOffice\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<td>\r\n");

⌨️ 快捷键说明

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