?? userkey_amend.jsp
字號(hào):
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="m" scope="application" class="MD5.MD5"/>
<%
String user_name=(String)session.getValue("username");
String user_key=new String(request.getParameter("user_key").getBytes("ISO8859_1"), "GBK");
String user_key2=new String(request.getParameter("user_key2").getBytes("ISO8859_1"), "GBK");
user_key=m.getMD5ofStr(user_key);
try{
Connection con=j.getConnection();
Statement statement=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String upsql="update user_info set user_key='"+user_key+"' where user_name='"+user_name+"'";
statement.executeUpdate(upsql);
j.releaseConnection(con);
}
catch(SQLException ee){out.print("數(shù)據(jù)庫連接失??!");}
out.print("密碼修改成功!");
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -