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

Jsp/Servlet

开发平台:

VBScript

  1. import java.sql.*;
  2. import proj112.ISOtoGb2312;
  3. import javax.servlet.*;
  4. import javax.servlet.http.*;
  5. import javax.servlet.jsp.*;
  6. import org.apache.jasper.runtime.*;
  7. public class update_0005fmessage_0002ejsp_jsp extends HttpJspBase {
  8.     static {
  9.     }
  10.     public update_0005fmessage_0002ejsp_jsp( ) {
  11.     }
  12.     private static boolean _jspx_inited = false;
  13.     public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
  14.     }
  15.     public void _jspService(HttpServletRequest request, HttpServletResponse  response)
  16.         throws java.io.IOException, ServletException {
  17.         JspFactory _jspxFactory = null;
  18.         PageContext pageContext = null;
  19.         HttpSession session = null;
  20.         ServletContext application = null;
  21.         ServletConfig config = null;
  22.         JspWriter out = null;
  23.         Object page = this;
  24.         String  _value = null;
  25.         try {
  26.             if (_jspx_inited == false) {
  27.                 synchronized (this) {
  28.                     if (_jspx_inited == false) {
  29.                         _jspx_init();
  30.                         _jspx_inited = true;
  31.                     }
  32.                 }
  33.             }
  34.             _jspxFactory = JspFactory.getDefaultFactory();
  35.             response.setContentType("text/html; charset=GB2312");
  36.             pageContext = _jspxFactory.getPageContext(this, request, response,
  37.              "", true, 8192, true);
  38.             application = pageContext.getServletContext();
  39.             config = pageContext.getServletConfig();
  40.             session = pageContext.getSession();
  41.             out = pageContext.getOut();
  42.             // HTML // begin [file="/update_message.jsp";from=(0,51);to=(1,0)]
  43.                 out.write("rn");
  44.             // end
  45.             // HTML // begin [file="/update_message.jsp";from=(1,32);to=(2,0)]
  46.                 out.write("rn");
  47.             // end
  48.             // HTML // begin [file="/update_message.jsp";from=(2,28);to=(3,0)]
  49.                 out.write("rn");
  50.             // end
  51.             // HTML // begin [file="/update_message.jsp";from=(3,41);to=(13,0)]
  52.                 out.write("rn<HTML>rn<HEAD>rn<TITLE>update</TITLE>rn</HEAD>rn<body text="#808080" link="#FF99CC" vlink="#FF8080" alink="#FF99CC" topmargin="0" leftmargin="0"><style>rn<!--rnBODY {SCROLLBAR-FACE-COLOR: #FFFFFF; SCROLLBAR-HIGHLIGHT-COLOR: #FFFFFF; SCROLLBAR-SHADOW-COLOR: #FFFFFF; SCROLLBAR-3DLIGHT-COLOR: #FFFFFF; SCROLLBAR-ARROW-COLOR:  #FFAAAA; SCROLLBAR-TRACK-COLOR: #FFFFFF; SCROLLBAR-DARKSHADOW-COLOR: #FFFFFF; }rn-->rn</style>rn");
  53.             // end
  54.             // begin [file="/update_message.jsp";from=(13,2);to=(25,0)]
  55.                 
  56.                 String stu_id=ISOtoGb2312.convert(request.getParameter("stu_id"));
  57.                 
  58.                 String stu_password=ISOtoGb2312.convert(request.getParameter("stu_password"));
  59.                 
  60.                 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //载入驱动程序类别
  61.                 Connection con = DriverManager.getConnection("jdbc:odbc:dsn112"); //建立数据库链接
  62.                 Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
  63.                  ResultSet.CONCUR_READ_ONLY);
  64.                 String strsql;
  65.                 strsql="update Info set stu_password ='"+stu_password+"' where stu_id ='"+stu_id+"'";
  66.                 stmt.executeUpdate(strsql);
  67.             // end
  68.             // HTML // begin [file="/update_message.jsp";from=(25,2);to=(32,48)]
  69.                 out.write("rn<br><br><br><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:99%;border-collapse:collapse;">rn  <tr>rn    <td align="center"><h3>你修改了的密码如下:</td>rn  </tr>rn <tr>rn    <td height="30">&nbsp;&nbsp;&nbsp;&nbsp;用户名:");
  70.             // end
  71.             // begin [file="/update_message.jsp";from=(32,51);to=(32,57)]
  72.                 out.print(stu_id);
  73.             // end
  74.             // HTML // begin [file="/update_message.jsp";from=(32,59);to=(35,49)]
  75.                 out.write("</td>rn  </tr>rn  <tr>rn    <td height="30">&nbsp;&nbsp;&nbsp;&nbsp;密  码:");
  76.             // end
  77.             // begin [file="/update_message.jsp";from=(35,52);to=(35,64)]
  78.                 out.print(stu_password);
  79.             // end
  80.             // HTML // begin [file="/update_message.jsp";from=(35,66);to=(57,0)]
  81.                 out.write("</td>rn  </tr>rnrn  <tr>rn    <td  align="center">&nbsp;&nbsp;&nbsp;&nbsp;<a href="pwd.jsp">返回</a></td>rn  </tr>rnrn</table>rn<TABLE border="0" width="90%" align="center">rn       <tr>rn         <td height="10"></td>rn       </tr>rn       <tr>rn         <td align="center"></td>rn       </tr>rn       <tr>rn         <td height="10"></td>rn       </tr>rnrn</table>rn</BODY>rn</HTML>rn");
  82.             // end
  83.         } catch (Throwable t) {
  84.             if (out != null && out.getBufferSize() != 0)
  85.                 out.clearBuffer();
  86.             if (pageContext != null) pageContext.handlePageException(t);
  87.         } finally {
  88.             if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  89.         }
  90.     }
  91. }