update_ad_pwd.jsp~10~
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ page import="java.sql.*" %>
- <%@ page language="java" %>
- <%@ page import="java.util.*" %>
- <%@ page import="proj112.*" %>
- <jsp:useBean id="a" scope="page" class="proj112.dbconn"/>
- <html>
- <head>
- <title>
- change_pwd
- </title>
- </head>
- <body bgcolor="#ffffff">
- <% String sql="";
- String password=request.getParameter("pwd2");
- String number=(String)session.getAttribute("id");
- sql="update student set ad_password ='"+password+"' where name ='"+number+"'";
- a.executeUpdate(sql);
- response.sendRedirect("jsp1.jsp") ;
- %>
- </body>
- </html>