📄 input.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<HTML>
<HEAD><TITLE>模拟登陆</TITLE></HEAD>
<BODY>
<%
Cookie[] cookies=request.getCookies();
int len=0;
if(cookies!=null)
len=cookies.length;
String username="";
String password="";
if(len>0){
for(int i=0;i<len;i++){
Cookie tem=cookies[i];
if(tem.getName().equals("Username"))
username=tem.getValue();
if(tem.getName().equals("Password"))
password=tem.getValue();
}
}
%>
<form action='cookie2.jsp' method='post'>
<input type=text name='username' value='<%=username%>'><BR>
<input type=password name='password' value='<%=password%>'><BR>
<input type=submit value='提交'>
</form>
<BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -