📄 login.jsp
字号:
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>Project Billboard</title>
</head>
<body bgcolor="white">
<h1>Welcome to the Project Billboard</h1>
Your personalized project news web site.
<p>
<font color="red">
<c:out value="${param.errorMsg}" />
</font>
<%--
Create a server-relative path for the form so that it's
valid even when a protected resource forwards to this page.
--%>
<form action="<c:url value="/ch18/authenticate.do" />" method="post">
<input type="hidden" name="origURL"
value="<c:out value="${param.origURL}" />">
Please enter your User Name and Password, and click Enter.
<p>
Name:
<input name="userName"
value="<c:out value="${cookie.userName.value}" />"
size="10">
Password:
<input type="password" name="password"
value="<c:out value="${cookie.password.value}" />"
size="10">
<input type="submit" value="Enter">
<p>
Remember my name and password:
<input type="checkbox" name="remember"
<c:if test="${!empty cookie.userName}">checked</c:if>>
<br>
(This feature requires cookies to be enabled in your browser)
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -