chklog.jsp

来自「system1为用户注册模块 system2为在线聊天系统 system3为」· JSP 代码 · 共 18 行

JSP
18
字号
<%@ page contentType="text/html; charset=GB2312" 
		language="java"
		import = "com.newwindows.hzdtv.sql.*,java.util.*, java.text.*"
		%>
<jsp:useBean id="bean0" scope="session" class="com.newwindows.hzdtv.session.SessionBean" />
<%
String admin=request.getParameter("admin");
String pwd=request.getParameter("pwd");
if(bean0.login(admin,pwd))
{
		out.println("<script>location.href='index.jsp'</script>");
}
else
{
	out.println("<script language=javascript>alert('管理员姓名和密码错误!');location.href='login.jsp'</script>");
}
%>

⌨️ 快捷键说明

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