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

📄 login.jsp

📁 java高级引用管理综合朝鲜经java高级引用管理综合朝鲜经java高级引用管理综合朝鲜经java高级引用管理综合朝鲜经
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.login.UserDBOperation"%>
<%@page import="com.login.UserInforBean"%>
<%@ page import="com.model.*,org.springframework.context.ApplicationContext
,org.springframework.web.context.support.WebApplicationContextUtils"%>
<%
    request.setCharacterEncoding("UTF-8");
     ApplicationContext ctx = WebApplicationContextUtils
					.getRequiredWebApplicationContext(getServletContext());
			com.hbmDAO.PersonDAO dao = (com.hbmDAO.PersonDAO) ctx
					.getBean("personDAO");
					
    Collection retdept = (Collection)request.getAttribute("retdept");
    if(retdept==null){
        retdept=dao.queryDepts();
        request.setAttribute("retdept",retdept);
    }
    String deptlogin = (String)request.getAttribute("dept");
    Collection userlogins = (Collection)request.getAttribute("userlogins");
 %>
<html>
<head>
<title>登录</title>
<style type="text/css">
<!--
body {
	background-color: #346596;
}
-->
</style>
<script type="text/javascript">
function expire() {
document.form1.method="post";
document.form1.action="/peac/login_servlet";
submitForm(document.form1);
}
function jumpto() {
document.form1.method="post";
document.form1.action="/peac/logindept_servlet";
document.form1.submit();
}
</script>
<link href="pisoft_wtfk.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>

<body>
<center>
<br />
<br />
<form name="form1" method="" action="">
<table width="450" border="0" cellpadding="0" cellspacing="0">
  <tr valign="bottom">
    <td width="450" height="280" background="images/login_03.jpg"><table width="449" height="81" border="0" cellpadding="0" cellspacing="0" class="pisfot_tab_login">
      <tr>
        <td width="151">&nbsp;</td>
        <td width="298"><table width="224" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="62"><span class="STYLE1">部&nbsp;&nbsp;&nbsp;&nbsp;门</span></td>
            <td width="108">
            <select name="dept"  class="pisoft_tjcx_selcet" onchange="jumpto()">
		       <option>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请选择&nbsp;&nbsp;&nbsp;&nbsp;--</option>
<%
    Iterator itdept=retdept.iterator();

    while(itdept.hasNext())
    {
        String dept=(String)itdept.next();   
%>
		       <option value="<%=dept%>" <%=(dept.equals(deptlogin))? "selected" : "" %> ><%=dept%></option>
<%
    }
%>  
		    </select>
            <!--input name="username" type="text" class="pisoft_tjcx_selcet" id="textfield" size="15" /-->
            </td>
          </tr>
          <tr>
            <td width="62"><span class="STYLE1">用户名</span></td>
            <td width="108">
            <select name="username"  class="pisoft_tjcx_selcet">
		       <option>--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请选择&nbsp;&nbsp;&nbsp;&nbsp;--</option>
<%
if(userlogins!=null){

    Iterator ituser=userlogins.iterator();

    while(ituser.hasNext())
    {
        String user=(String)ituser.next();   
%>
		       <option value="<%=user%>" ><%=user%></option>
<%
    }
}
%>  
		    </select>
            <!--input name="username" type="text" class="pisoft_tjcx_selcet" id="textfield" size="15" /-->
            </td>
            <td width="54" rowspan="3"><input name="button"  onClick="expire();" type="submit" class="pisfot_login_button" id="button" value="登录" /></td>
          </tr>
          <tr>
            <td><span class="STYLE1">密&nbsp;&nbsp;&nbsp;&nbsp;码</span></td>
            <td><input name="pass" type="password" class="pisoft_tjcx_selcet" id="textfield2" size="15" onkeydown="expire();"/></td>
            </tr>
        </table></td>
      </tr>
<%
    String longinwarn=(String)request.getAttribute("loginwarn");
    request.removeAttribute("loginwarn");
%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=(longinwarn==null)? "" : longinwarn %>
    </table></td>
  </tr>
</table>
</form>
</center>
</body>
</html>

⌨️ 快捷键说明

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