You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
<%--
|
|
Created by IntelliJ IDEA.
|
|
User: HP
|
|
Date: 2026/4/27
|
|
Time: 17:07
|
|
To change this template use File | Settings | File Templates.
|
|
--%>
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
<html>
|
|
<head>
|
|
<title>TestGetData</title>
|
|
</head>
|
|
<body>
|
|
1.对象方式接收信息<br>
|
|
<form action="testGD/object" method="post">
|
|
姓名:<input type="text" name="username"></br>
|
|
年龄:<input type="text" name="userage"></br>
|
|
<input type="submit" value="提交">
|
|
</form>
|
|
2.普通方式-直接<br>
|
|
<form action="testGD/usual" method="post">
|
|
姓名:<input type="text" name="username"></br>
|
|
年龄:<input type="text" name="userage"></br>
|
|
<input type="submit" value="提交">
|
|
</form>
|
|
3.@RequestParam方式<br>
|
|
<form action="testGD/param" method="post">
|
|
姓名:<input type="text" name="username"></br>
|
|
年龄:<input type="text" name="userage"></br>
|
|
<input type="submit" value="提交">
|
|
</form>
|
|
4.HttpServletRequest方式<br>
|
|
<form action="testGD/httpSR" method="post">
|
|
姓名:<input type="text" name="username"></br>
|
|
年龄:<input type="text" name="userage"></br>
|
|
<input type="submit" value="提交">
|
|
</form>
|
|
</body>
|
|
</html>
|