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

📄 logincheck.jsp

📁 一个完整的物流系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<jsp:directive.page import="jp.com.cost.pojo.Account"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
 function CloseWin()
{
var ua=navigator.userAgent
var ie=navigator.appName=="Microsoft Internet Explorer"?true:false
if(ie){
    var IEversion=parseFloat(ua.substring(ua.indexOf("MSIE ")+5,ua.indexOf(";",ua.indexOf("MSIE "))))
 if(IEversion< 5.5){
    var str  = '<object id=noTipClose classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
    str += '<param name="Command" value="Close"></object>';
    document.body.insertAdjacentHTML("beforeEnd", str);
    document.all.noTipClose.Click();
    }
    else{
    window.opener =null;
    window.close();
    }
}
else{
window.close()
}
}
function login(){
  var iWidth = 0 ;
  var iHeight = 0 ;
  iWidth=window.screen.availWidth-10;
  iHeight=window.screen.availHeight-35;
  var szFeatures = "" ;
  szFeatures =	"resizabl=no,status=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,width=" + iWidth*1 + ",height=" + iHeight*1 + ",top=0,left=0"
  /////////// start edited by lizhi 2006-8-18 修改登陆提交方式,由get改为post  ////////////
  //sURL = "../platform/logon.do?EK52K3KL3JH3KK43JHK334LK3434K4EK43L4334LK4334KL4KHLL34KJ43M6L3H4KL54KL45=232743K3-433K4K34-34343KL43-344KJK43-43KKKJ34-34KKK;43HHGN43-TGKKHH34-D23323&KDSH23KT2POJ436FDMCXV64HSYWJ435SDJKGJH23G4=D6342-8HSDG3-4JKDS5W-EBSQ46-DSVN45&DSJHDSFUWERJK3473443743548954J54K5489433HJNM34HJHJ437KJ4354895478743-DDJS23=2389489243894389&solution=800&username="+document.all.username.value+"&password="+document.all.password.value + "&scrWidth=" + document.all.scrWidth.value;
  //var newwin = window.open(sURL,"",szFeatures);
  
  var newwin=null;
  newwin = window.open("jsp/index.jsp","window_deoa",szFeatures);
  
  //注:由于采用了image类型button,一点击就自动提交,不需要显式的提交代码,如果是普通button,则需要显示提交
  //document.forms[0].submit();
  /////////// end edited by lizhi 2006-8-18 修改登陆提交方式,由get改为post  ////////////
  CloseWin();
 //return newwin;
} 
 
</script>
<%
    Account account = (Account)request.getAttribute("account");
    if(null==account){
     out.println("<script>alert('用户不存在');history.back();</script>");

    }else{
     session.setAttribute("account",account);    
     out.println("<script>login();window.close();</script>");
     
    }
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'logincheck.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    This is my JSP page. <br>
    
  </body>
</html>

⌨️ 快捷键说明

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