grxx_0002ejsp_jsp.java
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:14k
源码类别:

Jsp/Servlet

开发平台:

VBScript

  1. import java.sql.*;
  2. import java.util.*;
  3. import proj112.*;
  4. import javax.servlet.*;
  5. import javax.servlet.http.*;
  6. import javax.servlet.jsp.*;
  7. import org.apache.jasper.runtime.*;
  8. public class grxx_0002ejsp_jsp extends HttpJspBase {
  9.     // begin [file="/grxx.jsp";from=(5,0);to=(5,57)]
  10.     // end
  11.     static {
  12.     }
  13.     public grxx_0002ejsp_jsp( ) {
  14.     }
  15.     private static boolean _jspx_inited = false;
  16.     public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
  17.     }
  18.     public void _jspService(HttpServletRequest request, HttpServletResponse  response)
  19.         throws java.io.IOException, ServletException {
  20.         JspFactory _jspxFactory = null;
  21.         PageContext pageContext = null;
  22.         HttpSession session = null;
  23.         ServletContext application = null;
  24.         ServletConfig config = null;
  25.         JspWriter out = null;
  26.         Object page = this;
  27.         String  _value = null;
  28.         try {
  29.             if (_jspx_inited == false) {
  30.                 synchronized (this) {
  31.                     if (_jspx_inited == false) {
  32.                         _jspx_init();
  33.                         _jspx_inited = true;
  34.                     }
  35.                 }
  36.             }
  37.             _jspxFactory = JspFactory.getDefaultFactory();
  38.             response.setContentType("text/html; charset=GBK");
  39.             pageContext = _jspxFactory.getPageContext(this, request, response,
  40.              "", true, 8192, true);
  41.             application = pageContext.getServletContext();
  42.             config = pageContext.getServletConfig();
  43.             session = pageContext.getSession();
  44.             out = pageContext.getOut();
  45.             // HTML // begin [file="/grxx.jsp";from=(0,48);to=(1,0)]
  46.                 out.write("rn");
  47.             // end
  48.             // HTML // begin [file="/grxx.jsp";from=(1,31);to=(2,0)]
  49.                 out.write("rn");
  50.             // end
  51.             // HTML // begin [file="/grxx.jsp";from=(2,27);to=(3,0)]
  52.                 out.write("rn");
  53.             // end
  54.             // HTML // begin [file="/grxx.jsp";from=(3,32);to=(4,0)]
  55.                 out.write("rn");
  56.             // end
  57.             // HTML // begin [file="/grxx.jsp";from=(4,30);to=(5,0)]
  58.                 out.write("rn");
  59.             // end
  60.             // begin [file="/grxx.jsp";from=(5,0);to=(5,57)]
  61.                 proj112.dbconn a = null;
  62.                 boolean _jspx_speciala  = false;
  63.                  synchronized (pageContext) {
  64.                     a= (proj112.dbconn)
  65.                     pageContext.getAttribute("a",PageContext.PAGE_SCOPE);
  66.                     if ( a == null ) {
  67.                         _jspx_speciala = true;
  68.                         try {
  69.                             a = (proj112.dbconn) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "proj112.dbconn");
  70.                         } catch (ClassNotFoundException exc) {
  71.                              throw new InstantiationException(exc.getMessage());
  72.                         } catch (Exception exc) {
  73.                              throw new ServletException (" Cannot create bean of class "+"proj112.dbconn", exc);
  74.                         }
  75.                         pageContext.setAttribute("a", a, PageContext.PAGE_SCOPE);
  76.                     }
  77.                  } 
  78.                 if(_jspx_speciala == true) {
  79.             // end
  80.             // begin [file="/grxx.jsp";from=(5,0);to=(5,57)]
  81.                 }
  82.             // end
  83.             // HTML // begin [file="/grxx.jsp";from=(5,57);to=(18,3)]
  84.                 out.write("rn<html>rn<head>rn  <script language="javascript">rn        function c(){rn              alert("保存成功!");rn              return true;rn        }rn</script>rn<title>rn</title>rn</head>rn<body bgcolor="#ffffff">rn   ");
  85.             // end
  86.             // begin [file="/grxx.jsp";from=(18,5);to=(24,4)]
  87.                 
  88.                     String sql="";
  89.                     String xuehao=(String)session.getAttribute("id");
  90.                     sql="SELECT * FROM student where stu_id='"+xuehao+"'";
  91.                     ResultSet rs = a.executeQuery(sql);
  92.                     if(rs.next()){
  93.                     
  94.             // end
  95.             // HTML // begin [file="/grxx.jsp";from=(24,6);to=(37,80)]
  96.                 out.write("rn    <pre>rn                                   学籍维护rn注意事项:rn1、所有需本人录入的信息必须实事求是,详尽细致,认真填写。rn2、不可录信息由学院维护。rn3、生日必须与身份证上的出生日期一致。rn4、从填写到提交的时间请勿过长(不超过20分钟为宜),一次不能填完请分多次提交。</pre>rn    <hr>rn    <form action="change_grxx.jsp" method="POST" name="form3">rn<pre>基本信息(不可录入)<br>rn<TABLE width="80%"style="BORDER-RIGHT: #cc9966 1px; BORDER-TOP: #cc9966 1px; BORDER-LEFT: #cc9966 1px; WIDTH: 100%; BORDER-BOTTOM: #cc9966 1px; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: white"rnborderColor=#cc9966 cellSpacing=0 cellPadding=4 rules=all border=1>rn<tr><td width="10%" align="center"><pre>姓名:</td><td  width="10%" align="center">");
  97.             // end
  98.             // begin [file="/grxx.jsp";from=(37,83);to=(37,108)]
  99.                 out.print(rs.getString("stu_name") );
  100.             // end
  101.             // HTML // begin [file="/grxx.jsp";from=(37,110);to=(37,192)]
  102.                 out.write("</td><td  width="10%" align="center"><pre>学号:</td><td  width="10%" align="center">");
  103.             // end
  104.             // begin [file="/grxx.jsp";from=(37,195);to=(37,218)]
  105.                 out.print(rs.getString("stu_id") );
  106.             // end
  107.             // HTML // begin [file="/grxx.jsp";from=(37,220);to=(37,302)]
  108.                 out.write("</td><td  width="10%" align="center"><pre>性别:</td><td  width="10%" align="center">");
  109.             // end
  110.             // begin [file="/grxx.jsp";from=(37,305);to=(37,325)]
  111.                 out.print(rs.getString("sex") );
  112.             // end
  113.             // HTML // begin [file="/grxx.jsp";from=(37,327);to=(38,80)]
  114.                 out.write("</td></tr>rn<tr><td width="10%" align="center"><pre>专业:</td><td  width="10%" align="center">");
  115.             // end
  116.             // begin [file="/grxx.jsp";from=(38,83);to=(38,104)]
  117.                 out.print(rs.getString("dept") );
  118.             // end
  119.             // HTML // begin [file="/grxx.jsp";from=(38,106);to=(38,188)]
  120.                 out.write("</td><td  width="10%" align="center"><pre>民族:</td><td  width="10%" align="center">");
  121.             // end
  122.             // begin [file="/grxx.jsp";from=(38,191);to=(38,210)]
  123.                 out.print(rs.getString("mz") );
  124.             // end
  125.             // HTML // begin [file="/grxx.jsp";from=(38,212);to=(38,296)]
  126.                 out.write("</td><td  width="10%" align="center"><pre>政治面貌:</td><td  width="10%" align="center">");
  127.             // end
  128.             // begin [file="/grxx.jsp";from=(38,299);to=(38,320)]
  129.                 out.print(rs.getString("zzmm") );
  130.             // end
  131.             // HTML // begin [file="/grxx.jsp";from=(38,322);to=(42,121)]
  132.                 out.write("</td></tr>rn</table><br>rn<pre>基本信息<br>rn<table  width="100%" cellspacing="0" cellpadding="4" rules="all" bordercolor="#CC9966" border="1" id="dg_rxkb" style="background-color:White;border-color:#CC9966;border-width:1px;border-style:None;width:100%;border-collapse:collapse;">rn<tr><td width="5%" align="left"><pre>曾用名:</td><td width="5%" align="left"><input type="text" size="10" name="zym" value="");
  133.             // end
  134.             // begin [file="/grxx.jsp";from=(42,124);to=(42,143)]
  135.                 out.print(rs.getString("zym"));
  136.             // end
  137.             // HTML // begin [file="/grxx.jsp";from=(42,145);to=(42,274)]
  138.                 out.write("" ></td><td width="8%" align="center"><pre>身份证号:</td><td width="10%" align="left"><input type="text" size="10" name="sfz" value="");
  139.             // end
  140.             // begin [file="/grxx.jsp";from=(42,277);to=(42,296)]
  141.                 out.print(rs.getString("sfz"));
  142.             // end
  143.             // HTML // begin [file="/grxx.jsp";from=(42,298);to=(42,438)]
  144.                 out.write("" ></td><td width="10%"  align="center"><font size="2">出生日期:</td><td width="8%" align="left"><input type="text" size="10" name="age" value="");
  145.             // end
  146.             // begin [file="/grxx.jsp";from=(42,441);to=(42,460)]
  147.                 out.print(rs.getString("age"));
  148.             // end
  149.             // HTML // begin [file="/grxx.jsp";from=(42,462);to=(43,119)]
  150.                 out.write("" ></td></tr>rn<tr><td width="5%" align="left"><pre>籍贯:</td><td width="5%" align="left"><input size="10" type="text" name="jg" value="");
  151.             // end
  152.             // begin [file="/grxx.jsp";from=(43,122);to=(43,140)]
  153.                 out.print(rs.getString("jg"));
  154.             // end
  155.             // HTML // begin [file="/grxx.jsp";from=(43,142);to=(43,272)]
  156.                 out.write("" ></td><td width="8%" align="center"><pre>健康状况:</td><td width="10%" align="left"><input type="text" size="10" name="jkzk" value="");
  157.             // end
  158.             // begin [file="/grxx.jsp";from=(43,275);to=(43,295)]
  159.                 out.print(rs.getString("jkzk"));
  160.             // end
  161.             // HTML // begin [file="/grxx.jsp";from=(43,297);to=(43,429)]
  162.                 out.write("" ></td><td width="10%" align="center"><pre>入学年份:</td><td width="8%" align="left"><input type="text" size="10" name="rxdate" value="");
  163.             // end
  164.             // begin [file="/grxx.jsp";from=(43,432);to=(43,454)]
  165.                 out.print(rs.getString("rxdate"));
  166.             // end
  167.             // HTML // begin [file="/grxx.jsp";from=(43,456);to=(44,135)]
  168.                 out.write("" > </td></tr>rn<tr><td width="5%" align="left"><pre>家庭地址:</td><td width="5%" colspan="3" align="left"><input size="30" type="text" name="jtdz" value="");
  169.             // end
  170.             // begin [file="/grxx.jsp";from=(44,138);to=(44,158)]
  171.                 out.print(rs.getString("jtdz"));
  172.             // end
  173.             // HTML // begin [file="/grxx.jsp";from=(44,160);to=(44,293)]
  174.                 out.write("" ></td><td width="10%" align="center"><pre>家庭电话:</td><td width="10%" align="center"><input type="text" size="10" name="jtdh" value="");
  175.             // end
  176.             // begin [file="/grxx.jsp";from=(44,296);to=(44,316)]
  177.                 out.print(rs.getString("jtdh"));
  178.             // end
  179.             // HTML // begin [file="/grxx.jsp";from=(44,318);to=(45,137)]
  180.                 out.write("" ></td></tr>rn<tr><td width="5%" align="left"><pre>邮政编码:</td><td  colspan="2" width="10%" align="left"><input size="20" type="text" name="yzbm" value="");
  181.             // end
  182.             // begin [file="/grxx.jsp";from=(45,140);to=(45,160)]
  183.                 out.print(rs.getString("yzbm"));
  184.             // end
  185.             // HTML // begin [file="/grxx.jsp";from=(45,162);to=(45,296)]
  186.                 out.write(""></td><td align="center"><pre>本人联系方式:</td><td width="10%" colspan="2" align="left"><input type="text" size="20" name="brlxfs" value="");
  187.             // end
  188.             // begin [file="/grxx.jsp";from=(45,299);to=(45,321)]
  189.                 out.print(rs.getString("brlxfs"));
  190.             // end
  191.             // HTML // begin [file="/grxx.jsp";from=(45,323);to=(46,138)]
  192.                 out.write(""></td></tr>rn<tr><td width="5%" align="left"><pre>E-MAIL:</td><td width="5%" colspan="2" align="left"><input size="20" type="text" name="email" value="");
  193.             // end
  194.             // begin [file="/grxx.jsp";from=(46,141);to=(46,162)]
  195.                 out.print(rs.getString("email"));
  196.             // end
  197.             // HTML // begin [file="/grxx.jsp";from=(46,164);to=(46,310)]
  198.                 out.write(""></td><td width="10%" align="center"><pre>其它联系方式:</td><td width="10%" colspan="2" align="left"><input type="text" size="20" name="qtlxfs" value="");
  199.             // end
  200.             // begin [file="/grxx.jsp";from=(46,313);to=(46,335)]
  201.                 out.print(rs.getString("qtlxfs"));
  202.             // end
  203.             // HTML // begin [file="/grxx.jsp";from=(46,337);to=(49,46)]
  204.                 out.write(""></td></tr>rn</table><br>rn  <pre>备注:<br>rn<input type="text" size="50" name="bz" value="");
  205.             // end
  206.             // begin [file="/grxx.jsp";from=(49,49);to=(49,67)]
  207.                 out.print(rs.getString("bz"));
  208.             // end
  209.             // HTML // begin [file="/grxx.jsp";from=(49,69);to=(52,2)]
  210.                 out.write("">rn      <hr>rn    <center> <input type="submit" value="确认" onclick="return c()" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重填" ></center>rn  ");
  211.             // end
  212.             // begin [file="/grxx.jsp";from=(52,4);to=(52,6)]
  213.                  }
  214.             // end
  215.             // HTML // begin [file="/grxx.jsp";from=(52,8);to=(56,0)]
  216.                 out.write("rn  </form>rn</body>rn</html>rn");
  217.             // end
  218.         } catch (Throwable t) {
  219.             if (out != null && out.getBufferSize() != 0)
  220.                 out.clearBuffer();
  221.             if (pageContext != null) pageContext.handlePageException(t);
  222.         } finally {
  223.             if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  224.         }
  225.     }
  226. }