login.jsp

来自「本系统应用JSP、flashMX2004软件结合flash communicat」· JSP 代码 · 共 24 行

JSP
24
字号
<%@ page contentType="text/html;charset=gb2312"%>
<%@ include file="top.jsp"%>
<%
String username=request.getParameter("username");
String password=request.getParameter("password");
if(username!=null&&password!=null){
username=new String(username.getBytes("iso-8859-1"));
password=new String(password.getBytes("iso-8859-1"));
%>
<%@ include file="class.jsp"%>
<%
ResultSet rs=stmt.executeQuery("select*from nj");
while(rs.next()){
	String user=rs.getString("username");
	String pass=rs.getString("password");
	if(user.equals(username)&&pass.equals(password)){
		out.println("&success=1&");
	}
}
rs.close();
stmt.close();
conn.close();
}
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?