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

📄 login.jsp

📁 该源码包括了基于J2EE的数据持久层设计,设计中使用了DAO,Service,等模式,并在Struts下进行了测试.
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>login</title>
<style type="text/css">
<!--
.style1 {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-style: italic;
	color: #0000FF;
	font-size: xx-large;
}
.style2 {
	color: #0000FF;
	font-size: 16px;
}
.style4 {color: #000000}
.style5 {color: #000000; font-size: 16px; }
.style6 {
	font-size: 18px;
	color: #0000FF;
	font-style: italic;
}
-->
</style>
</head>
<body>
<p align="center" class="style1"><img src="images/dot.gif" width="13" height="13"></p>
<p align="center" class="style1">please enter your username and password to login in </p>
<html:form  action="user.do">
<table width="379" height="146" border="0" align="center" bgcolor="#D5F2FD">
  <tr>
    <th width="155" height="46" scope="row"><div align="center" class="style2 style4">User name </div></th>
    <td width="214" height="46"><div align="center">
      
        <div align="left">
		     <html:text property="username" size="20"/>
        </div>
      
    </div></td>
  </tr>
  <tr>
    <th width="155" height="50" scope="row"><span class="style5">Password</span></th>
    <td width="214" height="50">
      
        <div align="left">  
          <html:password property="password"  size="20"/>
    </div>   </td>
  </tr>
  <tr>
    <th height="15" colspan="2" scope="row">
      
        <div align="left">
          <blockquote>
            <blockquote>
              <blockquote>
                <p align="center">
                  <input type="submit" name="Submit" value="Login">
                </p>
              </blockquote>
            </blockquote>
          </blockquote>
    </div>    </th>
  </tr>
</table>
</html:form>
<p align="center" class="style6"><a href="Newregistration.jsp">new user  </a></p>
</body>
</html>

⌨️ 快捷键说明

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