43request对象 续

简介: 43request对象 续

image.png

<%@ page language="java" contentType="text/html; charset=UTF-8"
     pageEncoding="UTF-8"%>
 <!DOCTYPE html>
 <html>
 <head>
 <meta charset="ISO-8859-1">
 <title>Insert title here</title>
 </head>
 <body>
 <h1>request对象</h1>
 <hr>
 <form action="requset.jsp" name="regForm" method="get">
 <table>
 <tr>
 <td>用户名:</td>
 <td><input type="text" name="username"/></td>
 </tr>
 <tr>
 <td>爱好:</td>
 <input type="checkbox" name="favorite" value="read"/>读书
 <input type="checkbox" name="favorite" value="music"/>音乐
 <input type="checkbox" name="favorite" value="movie"/>电影
 <input type="checkbox" name="favorite" value="internet"/>上网
 </tr>
 <tr>
 <td colspan="2"><input type="submit" value="登录"></td>
 </tr>
 </table>
 </form>
 <br>
 <br>
 <a href="requset.jsp?username=lisi">url</a>
 </body>
 </html>

image.png

相关文章
|
7月前
|
API
webclient在delete请求时携带request body
webclient在delete请求时携带request body
127 0
|
存储 API
10JavaWeb基础 - Request类
10JavaWeb基础 - Request类
70 0
|
应用服务中间件
|
Java
Request和Response对象详解
Request和Response对象详解
221 0
Request和Response对象详解
|
Web App开发 iOS开发 Windows
|
Web App开发 iOS开发 Windows