⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.jsp

📁 JAVA案例开发集锦源代码 袁然 郑自国编
💻 JSP
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd"><%@ page contentType="text/html;charset=gb2312" info="我的第一个论坛!" errorPage="error.jsp"%><%@ page import="simpleforum.database.QueryHelp"%><%@ page import="simpleforum.util.ParamUtil"%><%@ page import="simpleforum.user.UserValidate"%><html><head>	<title>青年论坛</title>	<%@ include file="/simpleforum/meta.jsp"%>	<link rel='stylesheet' type='text/css' href='../css/forum.css'></head><body><%@ include file="/simpleforum/header.jsp"%><%		String contextPath = request.getContextPath();%>	<table width="100%">		<tr>			<td><a href="<%=contextPath%>/simpleforum/index.jsp">论坛主页</a></td>		</tr>	</table><%	String userName = ParamUtil.getParameter(request,"userName");	String userPassword = ParamUtil.getParameter(request,"userPassword");	int flag = UserValidate.userValidate(session,userName,userPassword);	if(flag > 0){		String sql="select * from forumforum order by issueNum desc";		java.util.Vector vector = QueryHelp.getHelp(sql);		if(vector.size()<=0){%>	<table width="100%">		<tr>			<td>本论坛暂时没有讨论区,谢谢关注!!!2秒钟后自动转入讨论区添加页面!</td>		</tr>	</table>	<meta http-equiv='refresh' content='2; url=addforum.jsp'><%		}else{			out.println("<br><font color=\"red\">登陆成功,2秒钟自动转入论坛主页!");		}%>	<meta http-equiv='refresh' content='2; url=login.jsp'><%	}else{		out.println("<br><br><font color=\"red\">登录失败,2秒钟后将自动转到登录页面!</font>"+"<br><br>flag="+flag);%>	<meta http-equiv='refresh' content='2; url=login.jsp'><%	}%><%@ include file="/simpleforum/footer.jsp"%></body></html>

⌨️ 快捷键说明

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