<%-- Created by IntelliJ IDEA. User: Administrator Date: 2018/3/13 Time: 8:44 To change this template use File | Settings | File Templates. --%> <%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>--%> <%--<html>--%> <%--<head>--%> <%--<title>$Title$</title>--%> <%--</head>--%> <%--<body>--%> <%--<h1><%out.println("Hello World");%></h1>--%> <%--<h2><%out.println("Welcome To JSP World");%></h2>--%> <%--</body>--%> <%--</html>--%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>登录页面</title> <link href="styles.css" rel="stylesheet"/> </head> <body> <div> <div id="header"> <h1>社区宠物诊所</h1> </div> <div id="main"> <form action="LoginServlet" method="post"> <table> <tr> <td>姓名</td> <td><input name="username" /></td> </tr> <tr> <td>密码</td> <td><input type="password" name="pwd"/></td> </tr> <tr> <td>验证码</td> <td><input name="usercode" /></td> </tr> <tr> <td>点击刷新</td> <!-- 为了避免IE的缓存bug 需要每次请求带上不一样的参数 这个参数可以没有任何意义 关键是要不一样 --> <td><img src="CheckCode" onclick="this.src='CheckCode?rand='+Math.random()"/></td><!-- /在html和转发Dispatcher里面的含义不同 前者表示服务器根目录 8080:/ 后者表示当前应用根目录 8080/ph/ --> </tr> <tr> <td></td> <td><input type="submit" value="登录" /> <input type="reset" value="重置"/></td> </tr> </table> </form> <h4><%=request.getAttribute("msg")==null?"":request.getAttribute("msg") %> <%=request.getParameter("para")==null?"":request.getParameter("para") %></h4> </div> <div id="footer"> </div> </div> </body> </html>
社区宠物医院登陆页面
猜你喜欢
转载自blog.csdn.net/qq_35447918/article/details/79535631
今日推荐
周排行