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

📄 loginoa.jsp

📁 在系统开发过程中用到了javabean和jsp技术
💻 JSP
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<jsp:useBean id="ds" scope="page" class="oa.main.DealString"/>
<%
	oa.bean.PersonBean myBean =null;
	try{
	myBean = new oa.bean.PersonBean();
	String screenwidth = (String)request.getParameter("w");
	session.setAttribute("SCREEN",screenwidth);
	String yhm = ds.toGBK(request.getParameter("uid"));
	String pwd = request.getParameter("pwd");
	//System.out.println("\n=="+yhm+"==");
	yhm=yhm.toLowerCase();
	yhm=yhm.trim();
	//System.out.println("\n=="+yhm+"==");

//	yhm = myBean.toID("ZZ_ZGB","YHM","ZGBH",yhm)+"";
	yhm = myBean.getZGBH(yhm);
	myBean.setPersonNO(yhm);
	boolean b = myBean.verifyPwd(pwd);
%>


<html>
<head>
<title>密码验证</title>
</head>
<body leftmargin=0 topmargin=0>

<iframe marginwidth=0 marginheight=0 src="progress/start.jsp?b=<%=b%>" frameborder=0 scrolling=no width=350 height="120">
</iframe>

<%
	

	if(b)//密码正确
	{
		session.setAttribute("zgbh",yhm);
%>
		<script>
		setTimeout("loginoa()",1500);
		</script>
<%
	}
	else
	{
%>
		<script>
		window.opener.document.all.uid.value="";
		window.opener.document.all.pwd.value="";
		alert("您输入的用户名或密码不正确!");
		window.close();
		</script>
<%
	}
%>
<script>
function loginoa()
{
		window.opener.document.all.uid.value="";
		window.opener.document.all.pwd.value="";
		mywin = window.open("../../index_oa.jsp","_self","menubar=yes,status=yes,toolbar=yes");
		mywin.focus();

		//定义窗口最大化
		window.moveTo(0,0);
		//window.resizeTo(screen.width,screen.height);
		window.resizeTo(screen.availWidth,screen.availHeight);
}
		</script>
</body>
</html>
<%}finally{
	if(myBean!=null)myBean.closeConn();
}%>

⌨️ 快捷键说明

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