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

📄 _students_0alter__jsp.java

📁 试题库自动组卷系统试题库自动组卷系统试题库自动组卷系统试题库自动组卷系统试题库自动组卷系统试题库自动组卷系统
💻 JAVA
字号:
/*
 * JSP generated by Resin-3.1.1 (built Mon, 07 May 2007 09:32:40 PDT)
 */

package _jsp._admin;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.Date;

public class _students_0alter__jsp extends com.caucho.jsp.JavaPage
{
  private static final java.util.HashMap<String,java.lang.reflect.Method> _jsp_functionMap = new java.util.HashMap<String,java.lang.reflect.Method>();
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    javax.servlet.http.HttpSession session = request.getSession(true);
    com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication();
    javax.servlet.ServletContext application = _jsp_application;
    com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false);
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    final javax.el.ELContext _jsp_env = pageContext.getELContext();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    response.setContentType("text/html;charset=GB2312");
    request.setCharacterEncoding("GB2312");
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      
	String gestnam = (String) session.getAttribute("name");
	String gestpsw = (String) session.getAttribute("password");
	if("".equals(gestnam)||gestnam==null & "".equals(gestpsw)||gestpsw==null)
	{
	response.sendRedirect("..//index.jsp"); 
	}

      out.write(_jsp_string1, 0, _jsp_string1.length);
      admin.dbcont dbcon;
      dbcon = (admin.dbcont) pageContext.getAttribute("dbcon");
      if (dbcon == null) {
        dbcon = new admin.dbcont();
        pageContext.setAttribute("dbcon", dbcon);
      }
      out.write(_jsp_string2, 0, _jsp_string2.length);
      
	  String Student_Id=request.getParameter("alter");
	  dbcon.getcon();
	  ResultSet rs=dbcon.stmt.executeQuery("select Student_Name,Sex,Nationality,Birth,Family_Place,Id_Card"
	                                       +",Home_phone,Residence,Postcode,InDate,StudentPsw,classes.Class_Id,Class_Name " 
	                                       +" from students,classes where "
	                                       +" students.Class_Id=classes.Class_Id "
	                                       +" and Student_Id='"+Student_Id+"'"); 
	  rs.next();
	   
	  String Student_Name=rs.getString("student_Name");
	  String Sex=rs.getString("sex");
	  String Nationality=rs.getString("Nationality");
	  Date Birth=rs.getDate("Birth");
	  String Family_Place=rs.getString("Family_Place");
	  String Id_Card=rs.getString("Id_Card");
	  String Home_phone=rs.getString("Home_phone");
	  String Residence=rs.getString("Residence");
	  String Postcode=rs.getString("Postcode");
	  Date InDate=rs.getDate("InDate");
	  String StudentPsw=rs.getString("StudentPsw");
	  String Class_Id=rs.getString("Class_Id"); 
	  String Class_Name=rs.getString("Class_Name");
	   
	  rs.close();
	  
	  
      out.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((Student_Id));
      out.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((Student_Name));
      out.write(_jsp_string5, 0, _jsp_string5.length);
      out.print((Sex));
      out.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((Nationality));
      out.write(_jsp_string7, 0, _jsp_string7.length);
      out.print((Birth));
      out.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((Family_Place));
      out.write(_jsp_string9, 0, _jsp_string9.length);
      out.print((Id_Card));
      out.write(_jsp_string10, 0, _jsp_string10.length);
      out.print((Home_phone));
      out.write(_jsp_string11, 0, _jsp_string11.length);
      out.print((Residence));
      out.write(_jsp_string12, 0, _jsp_string12.length);
      out.print((Postcode));
      out.write(_jsp_string13, 0, _jsp_string13.length);
      out.print((InDate));
      out.write(_jsp_string14, 0, _jsp_string14.length);
      
          rs=dbcon.stmt.executeQuery("Select  count(Distinct class_Id) Classlen from classes");
	  rs.next();
	  int Classlen=rs.getInt("Classlen");
	  String Class_Id1[]=new String[Classlen];
	  String Class_Name1[]=new String[Classlen];
	  rs=dbcon.stmt.executeQuery("Select * from classes");

      out.write(_jsp_string15, 0, _jsp_string15.length);
      out.print((Class_Id));
      out.write(_jsp_string16, 0, _jsp_string16.length);
      out.print((Class_Name));
      out.write(_jsp_string17, 0, _jsp_string17.length);
      
	  for(int i=0;i<Class_Name1.length;i++)
          {
            rs.next();
            Class_Id1[i]=rs.getString("Class_Id");
            Class_Name1[i]=rs.getString("Class_Name");
          
      out.write(_jsp_string18, 0, _jsp_string18.length);
      out.print((Class_Id1[i]));
      out.write(_jsp_string16, 0, _jsp_string16.length);
      out.print((Class_Name1[i]));
      out.write(_jsp_string19, 0, _jsp_string19.length);
      
	  }
	  
      out.write(_jsp_string20, 0, _jsp_string20.length);
      out.print((StudentPsw));
      out.write(_jsp_string21, 0, _jsp_string21.length);
      out.print((Student_Id));
      out.write(_jsp_string22, 0, _jsp_string22.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      com.caucho.jsp.QJspFactory.freePageContext(pageContext);
    }
  }

  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public java.util.ArrayList _caucho_getDependList()
  {
    return _caucho_depends;
  }

  public void _caucho_addDepend(com.caucho.vfs.PersistentDependency depend)
  {
    super._caucho_addDepend(depend);
    com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
  }

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.server.util.CauchoSystem.getVersionId() != -6891698089151209809L)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Dependency depend;
      depend = (com.caucho.vfs.Dependency) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public java.util.HashMap<String,java.lang.reflect.Method> _caucho_getFunctionMap()
  {
    return _jsp_functionMap;
  }

  public void init(ServletConfig config)
    throws ServletException
  {
    com.caucho.server.webapp.WebApp webApp
      = (com.caucho.server.webapp.WebApp) config.getServletContext();
    super.init(config);
    com.caucho.jsp.TaglibManager manager = webApp.getJspApplicationContext().getTaglibManager();
    com.caucho.jsp.PageContextImpl pageContext = new com.caucho.jsp.PageContextImpl(webApp, this);
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.server.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    com.caucho.loader.DynamicClassLoader loader;
    loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
    String resourcePath = loader.getResourcePathSpecificFirst();
    mergePath.addClassPath(resourcePath);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(appDir.lookup("admin/students_alter.jsp"), 8738505491326038126L, false);
    com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
  }

  private final static char []_jsp_string2;
  private final static char []_jsp_string14;
  private final static char []_jsp_string0;
  private final static char []_jsp_string3;
  private final static char []_jsp_string11;
  private final static char []_jsp_string22;
  private final static char []_jsp_string17;
  private final static char []_jsp_string1;
  private final static char []_jsp_string19;
  private final static char []_jsp_string16;
  private final static char []_jsp_string21;
  private final static char []_jsp_string18;
  private final static char []_jsp_string13;
  private final static char []_jsp_string20;
  private final static char []_jsp_string5;
  private final static char []_jsp_string10;
  private final static char []_jsp_string7;
  private final static char []_jsp_string6;
  private final static char []_jsp_string8;
  private final static char []_jsp_string4;
  private final static char []_jsp_string12;
  private final static char []_jsp_string9;
  private final static char []_jsp_string15;
  static {
    _jsp_string2 = "\r\n	".toCharArray();
    _jsp_string14 = "\" ><br>\r\n".toCharArray();
    _jsp_string0 = "\r\n\r\n\r\n".toCharArray();
    _jsp_string3 = "\r\n	  \r\n\r\n	</b>\r\n	</center><b></b>\r\n\r\n<center><form action=\"students_alter1.jsp\" method=\"post\">\r\n<font size=4 color=red>\u4f60\u8f93\u5165\u4f60\u8981\u4fee\u6539\u7684\u5185\u5bb9\uff1a</font><br>\r\n \u5b66  \u53f7 \uff1a<input name=\"Id\" type=\"text\" value=\"".toCharArray();
    _jsp_string11 = "\"><br>\r\n\u5bb6\u5ead\u5730\u5740\uff1a<input name=\"Residence\" type=\"text\" value=\"".toCharArray();
    _jsp_string22 = "\"><br>\r\n<input type=\"submit\" value=\"\u786e\u5b9a\" name=\"smt\">\r\n<form></center>\r\n\r\n<form action=\"students_edit.jsp\" method=\"post\">\r\n  <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"112\" height=\"49\" align=\"right\">\r\n    <param name=\"BGCOLOR\" value=\"\">\r\n    <param name=\"movie\" value=\"lessonsback.swf\">\r\n    <param name=\"quality\" value=\"high\">\r\n    <embed src=\"lessonsback.swf\" width=\"112\" height=\"49\" align=\"right\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" ></embed>\r\n  </object>\r\n</form>\r\n</body>\r\n</html>".toCharArray();
    _jsp_string17 = "</option>\r\n	 ".toCharArray();
    _jsp_string1 = "\r\n\r\n<html>\r\n  \r\n\r\n<head>\r\n	<title></title>\r\n</head>\r\n<body>\r\n\r\n	<b></b><center>\r\n	<b><font size=4 color=red>\u5b66\u751f\u4fe1\u606f\u4fee\u6539</font><br>\r\n	</b><hr><b><br>\r\n\r\n".toCharArray();
    _jsp_string19 = "</option>\r\n	  ".toCharArray();
    _jsp_string16 = "\">".toCharArray();
    _jsp_string21 = "\" ><br>\r\n<input name=\"Student_Id\" type=\"hidden\" value=\"".toCharArray();
    _jsp_string18 = "\r\n          <option  value=\"".toCharArray();
    _jsp_string13 = "\"><br>\r\n\u5165\u6821\u65e5\u671f\uff1a<input name=\"InDate\" type=\"text\" value=\"".toCharArray();
    _jsp_string20 = "</select><br>\r\n\u5bc6\u7801\uff1a<input name=\"StudentPsw\" type=\"text\" value=\"".toCharArray();
    _jsp_string5 = "\"><br>\r\n \u6027  \u522b \uff1a<input name=\"Sex\" type=\"text\" value=\"".toCharArray();
    _jsp_string10 = "\" ><br>\r\n\u8054\u7cfb\u7535\u8bdd\uff1a<input name=\"Home_phone\" type=\"text\" value=\"".toCharArray();
    _jsp_string7 = "\"><br>\r\n \u751f  \u65e5 \uff1a<input name=\"Birth\" type=\"text\" value=\"".toCharArray();
    _jsp_string6 = "\" ><br>\r\n \u6c11  \u65cf \uff1a<input name=\"Nationality\" type=\"text\" value=\"".toCharArray();
    _jsp_string8 = "\" ><br>\r\n \u7c4d  \u8d2f \uff1a<input name=\"Family_Place\" type=\"text\" value=\"".toCharArray();
    _jsp_string4 = "\" disabled=true><br>\r\n\u5b66\u751f\u59d3\u540d\uff1a<input name=\"Student_Name\" type=\"text\" value=\"".toCharArray();
    _jsp_string12 = "\" ><br>\r\n\u90ae\u653f\u7f16\u7801\uff1a<input name=\"Postcode\" type=\"text\" value=\"".toCharArray();
    _jsp_string9 = "\"><br>\r\n\u8eab\u4efd\u8bc1\u53f7\uff1a<input name=\"Id_Card\" type=\"text\" value=\"".toCharArray();
    _jsp_string15 = "\r\n\r\n\u73ed\u7ea7\u540d\u79f0: <select  name=\"lstbx1\" size=1>\r\n         <option  value=\"".toCharArray();
  }
}

⌨️ 快捷键说明

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