grxx_0002ejsp_jsp.java
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:14k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- import java.sql.*;
- import java.util.*;
- import proj112.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- public class grxx_0002ejsp_jsp extends HttpJspBase {
- // begin [file="/grxx.jsp";from=(5,0);to=(5,57)]
- // end
- static {
- }
- public grxx_0002ejsp_jsp( ) {
- }
- private static boolean _jspx_inited = false;
- public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
- }
- 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;
- String _value = null;
- try {
- if (_jspx_inited == false) {
- synchronized (this) {
- if (_jspx_inited == false) {
- _jspx_init();
- _jspx_inited = true;
- }
- }
- }
- _jspxFactory = JspFactory.getDefaultFactory();
- response.setContentType("text/html; charset=GBK");
- pageContext = _jspxFactory.getPageContext(this, request, response,
- "", true, 8192, true);
- application = pageContext.getServletContext();
- config = pageContext.getServletConfig();
- session = pageContext.getSession();
- out = pageContext.getOut();
- // HTML // begin [file="/grxx.jsp";from=(0,48);to=(1,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/grxx.jsp";from=(1,31);to=(2,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/grxx.jsp";from=(2,27);to=(3,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/grxx.jsp";from=(3,32);to=(4,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/grxx.jsp";from=(4,30);to=(5,0)]
- out.write("rn");
- // end
- // begin [file="/grxx.jsp";from=(5,0);to=(5,57)]
- proj112.dbconn a = null;
- boolean _jspx_speciala = false;
- synchronized (pageContext) {
- a= (proj112.dbconn)
- pageContext.getAttribute("a",PageContext.PAGE_SCOPE);
- if ( a == null ) {
- _jspx_speciala = true;
- try {
- a = (proj112.dbconn) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "proj112.dbconn");
- } catch (ClassNotFoundException exc) {
- throw new InstantiationException(exc.getMessage());
- } catch (Exception exc) {
- throw new ServletException (" Cannot create bean of class "+"proj112.dbconn", exc);
- }
- pageContext.setAttribute("a", a, PageContext.PAGE_SCOPE);
- }
- }
- if(_jspx_speciala == true) {
- // end
- // begin [file="/grxx.jsp";from=(5,0);to=(5,57)]
- }
- // end
- // HTML // begin [file="/grxx.jsp";from=(5,57);to=(18,3)]
- 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 ");
- // end
- // begin [file="/grxx.jsp";from=(18,5);to=(24,4)]
- String sql="";
- String xuehao=(String)session.getAttribute("id");
- sql="SELECT * FROM student where stu_id='"+xuehao+"'";
- ResultSet rs = a.executeQuery(sql);
- if(rs.next()){
- // end
- // HTML // begin [file="/grxx.jsp";from=(24,6);to=(37,80)]
- 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">");
- // end
- // begin [file="/grxx.jsp";from=(37,83);to=(37,108)]
- out.print(rs.getString("stu_name") );
- // end
- // HTML // begin [file="/grxx.jsp";from=(37,110);to=(37,192)]
- out.write("</td><td width="10%" align="center"><pre>学号:</td><td width="10%" align="center">");
- // end
- // begin [file="/grxx.jsp";from=(37,195);to=(37,218)]
- out.print(rs.getString("stu_id") );
- // end
- // HTML // begin [file="/grxx.jsp";from=(37,220);to=(37,302)]
- out.write("</td><td width="10%" align="center"><pre>性别:</td><td width="10%" align="center">");
- // end
- // begin [file="/grxx.jsp";from=(37,305);to=(37,325)]
- out.print(rs.getString("sex") );
- // end
- // HTML // begin [file="/grxx.jsp";from=(37,327);to=(38,80)]
- out.write("</td></tr>rn<tr><td width="10%" align="center"><pre>专业:</td><td width="10%" align="center">");
- // end
- // begin [file="/grxx.jsp";from=(38,83);to=(38,104)]
- out.print(rs.getString("dept") );
- // end
- // HTML // begin [file="/grxx.jsp";from=(38,106);to=(38,188)]
- out.write("</td><td width="10%" align="center"><pre>民族:</td><td width="10%" align="center">");
- // end
- // begin [file="/grxx.jsp";from=(38,191);to=(38,210)]
- out.print(rs.getString("mz") );
- // end
- // HTML // begin [file="/grxx.jsp";from=(38,212);to=(38,296)]
- out.write("</td><td width="10%" align="center"><pre>政治面貌:</td><td width="10%" align="center">");
- // end
- // begin [file="/grxx.jsp";from=(38,299);to=(38,320)]
- out.print(rs.getString("zzmm") );
- // end
- // HTML // begin [file="/grxx.jsp";from=(38,322);to=(42,121)]
- 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="");
- // end
- // begin [file="/grxx.jsp";from=(42,124);to=(42,143)]
- out.print(rs.getString("zym"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(42,145);to=(42,274)]
- out.write("" ></td><td width="8%" align="center"><pre>身份证号:</td><td width="10%" align="left"><input type="text" size="10" name="sfz" value="");
- // end
- // begin [file="/grxx.jsp";from=(42,277);to=(42,296)]
- out.print(rs.getString("sfz"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(42,298);to=(42,438)]
- 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="");
- // end
- // begin [file="/grxx.jsp";from=(42,441);to=(42,460)]
- out.print(rs.getString("age"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(42,462);to=(43,119)]
- 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="");
- // end
- // begin [file="/grxx.jsp";from=(43,122);to=(43,140)]
- out.print(rs.getString("jg"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(43,142);to=(43,272)]
- out.write("" ></td><td width="8%" align="center"><pre>健康状况:</td><td width="10%" align="left"><input type="text" size="10" name="jkzk" value="");
- // end
- // begin [file="/grxx.jsp";from=(43,275);to=(43,295)]
- out.print(rs.getString("jkzk"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(43,297);to=(43,429)]
- out.write("" ></td><td width="10%" align="center"><pre>入学年份:</td><td width="8%" align="left"><input type="text" size="10" name="rxdate" value="");
- // end
- // begin [file="/grxx.jsp";from=(43,432);to=(43,454)]
- out.print(rs.getString("rxdate"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(43,456);to=(44,135)]
- 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="");
- // end
- // begin [file="/grxx.jsp";from=(44,138);to=(44,158)]
- out.print(rs.getString("jtdz"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(44,160);to=(44,293)]
- out.write("" ></td><td width="10%" align="center"><pre>家庭电话:</td><td width="10%" align="center"><input type="text" size="10" name="jtdh" value="");
- // end
- // begin [file="/grxx.jsp";from=(44,296);to=(44,316)]
- out.print(rs.getString("jtdh"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(44,318);to=(45,137)]
- 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="");
- // end
- // begin [file="/grxx.jsp";from=(45,140);to=(45,160)]
- out.print(rs.getString("yzbm"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(45,162);to=(45,296)]
- out.write(""></td><td align="center"><pre>本人联系方式:</td><td width="10%" colspan="2" align="left"><input type="text" size="20" name="brlxfs" value="");
- // end
- // begin [file="/grxx.jsp";from=(45,299);to=(45,321)]
- out.print(rs.getString("brlxfs"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(45,323);to=(46,138)]
- 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="");
- // end
- // begin [file="/grxx.jsp";from=(46,141);to=(46,162)]
- out.print(rs.getString("email"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(46,164);to=(46,310)]
- 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="");
- // end
- // begin [file="/grxx.jsp";from=(46,313);to=(46,335)]
- out.print(rs.getString("qtlxfs"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(46,337);to=(49,46)]
- out.write(""></td></tr>rn</table><br>rn <pre>备注:<br>rn<input type="text" size="50" name="bz" value="");
- // end
- // begin [file="/grxx.jsp";from=(49,49);to=(49,67)]
- out.print(rs.getString("bz"));
- // end
- // HTML // begin [file="/grxx.jsp";from=(49,69);to=(52,2)]
- out.write("">rn <hr>rn <center> <input type="submit" value="确认" onclick="return c()" > <input type="reset" value="重填" ></center>rn ");
- // end
- // begin [file="/grxx.jsp";from=(52,4);to=(52,6)]
- }
- // end
- // HTML // begin [file="/grxx.jsp";from=(52,8);to=(56,0)]
- out.write("rn </form>rn</body>rn</html>rn");
- // end
- } catch (Throwable t) {
- if (out != null && out.getBufferSize() != 0)
- out.clearBuffer();
- if (pageContext != null) pageContext.handlePageException(t);
- } finally {
- if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
- }
- }
- }