📄 login.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="l" scope="application" class="login.login"/>
<jsp:useBean id="m" scope="application" class="MD5.MD5"/>
<%
l.con=j.getConnection();
String user_name=new String(request.getParameter("user_name").getBytes("ISO8859_1"), "GBK");
String user_key=new String(request.getParameter("user_key").getBytes("ISO8859_1"), "GBK");
String user_key_c=new String(request.getParameter("user_key_c").getBytes("ISO8859_1"), "GBK");
user_key=m.getMD5ofStr(user_key);
l.user_name=user_name;
l.user_key=user_key;
if(l.login_exe())
{
out.print("注册成功");
}
else
{
out.print("用户名重复");
}
j.releaseConnection(l.con);
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -