Skip to content

Commit 0857e88

Browse files
committed
update
1 parent f91311a commit 0857e88

File tree

12 files changed

+62
-0
lines changed

12 files changed

+62
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Manifest-Version: 1.0
2+
Created-By: IntelliJ IDEA
3+
Built-By: 强风吹拂
4+
Build-Jdk: Oracle OpenJDK version 1.8.0_301
5+
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
5+
version="4.0">
6+
<servlet>
7+
<servlet-name>RequestAPIServlet</servlet-name>
8+
<servlet-class>com.atguigu.selvlet.RequestAPIServlet</servlet-class>
9+
</servlet>
10+
11+
<servlet-mapping>
12+
<servlet-name>RequestAPIServlet</servlet-name>
13+
<url-pattern>/requestAPIServlet</url-pattern>
14+
</servlet-mapping>
15+
16+
<!-- ================================================================-->
17+
<servlet>
18+
<servlet-name>ParameterServlet</servlet-name>
19+
<servlet-class>com.atguigu.selvlet.ParameterServlet</servlet-class>
20+
</servlet>
21+
<servlet-mapping>
22+
<servlet-name>ParameterServlet</servlet-name>
23+
<url-pattern>/parameterServlet</url-pattern>
24+
</servlet-mapping>
25+
</web-app>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Title</title>
6+
</head>
7+
<body>
8+
<form action="http://localhost:8080/_07_servlet/parameterServlet" method="post">
9+
用户名:<input type="text" name="username"><br/>
10+
密码:<input type="password" name="password"><br/>
11+
兴趣爱好:<input type="checkbox" name="hobby" value="cpp">C++
12+
<input type="checkbox" name="hobby" value="java">Java
13+
<input type="checkbox" name="hobby" value="js">JavaScript<br/>
14+
15+
<input type="submit">
16+
17+
</form>
18+
</body>
19+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<title>JSP - Hello World</title>
6+
</head>
7+
<body>
8+
<h1><%= "Hello World!" %>
9+
</h1>
10+
<br/>
11+
<a href="hello-servlet">Hello Servlet</a>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)