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

📄 login.jsp

📁 gensou.rar为某渔具厂的一个简单ERP系统。为比较基础的工程
💻 JSP
字号:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>沈阳根守渔具厂ERP系统</title>
<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}


</style>
 <link href="/gensou/images/allcss.css" rel="stylesheet" type="text/css">
<style type="text/css">

.STYLE1 {color: #404040}

</style>
  </head>
  
  <body>
  <%
      HashMap hash;
      String username=null;
      try{
     // hash=(HashMap)application.getAttribute("hash");
      if(application.getAttribute("hash")==null){
         hash=new HashMap();
         username=(String)session.getAttribute("uername");
         if(username!=null&&!username.equals("")){
            hash.put(username,"登陆页面");
         }
         application.setAttribute("hash",hash);
         
        }else{
            hash=(HashMap)application.getAttribute("hash");
           username=(String)session.getAttribute("username");
          if(username!=null&&!username.equals("")){
            hash.put(username,"登陆页面");
          }
         application.setAttribute("hash",hash);
        }
      }catch(NullPointerException e){}
      String loginSucceed = "";
      try{
         loginSucceed = request.getAttribute("loginSucceed").toString();
         out.println(loginSucceed);
      }catch(NullPointerException e){}
    %>
    <%
      String loginError = "";
      try{
         loginError = request.getAttribute("loginError").toString();
         out.println(loginError);
      }catch(NullPointerException e){}
    %>
    <%
      String loginErr = "";
      try{
         loginErr = request.getAttribute("loginErr").toString();
         out.println(loginErr);
      }catch(NullPointerException e){}
    %>
    <table width="30%" border="0" cellpadding="0" cellspacing="2" class="table8" align="center">
      <tr>
          <td colspan="2" align="center" bgcolor="#f1f1f1">用户登陆</td>
      </tr>
      </table>
      <html:form action="/login" method="post">
      <table width="40%" border="0" cellpadding="0" cellspacing="2" class="table8" align="center">
      <tr>
          <td align="right">登陆条件</td>
          <td>
              <select name="way">
                      <option value="yonghuId">用户编号</option>
                      <option value="yonghuName">用户名称</option>
              </select>
          </td>
      </tr>
      <tr>
          <td align="right">用户信息</td>
          <td><input type="text" name="trams" class="EditBox"/></td>
      </tr>
      <tr>
          <td align="right">用户密码</td>
          <td><input type="password" name="password" class="EditBox"/></td>
      </tr>
      <tr>
        <td width="31%" colspan="2" align="center"><input name="Submit" type="submit" class="blueButtonCss" value="提 交">
            <input name="reset" type="reset" class="blueButtonCss" value="取 消"></td>
      </tr>
      </table>
      </html:form>
  </body>
</html>

⌨️ 快捷键说明

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