纯干货,直接上代码
目录
登录交互实例
jsp
<%@ 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>Insert title here</title>
<!-- http://127.0.0.1:8081/WEB3.0-Demo/login.jsp -->
</head>
<body>
<h4>请登录:</h4>
<form action="LoginServlet" method="post">
用户名:<input type="text" name="username" value="<%=request.getAttrib