Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2304397

Browse filesBrowse files
committed
1_2_switch_to_war
1 parent 70cd616 commit 2304397
Copy full SHA for 2304397

File tree

Expand file treeCollapse file tree

4 files changed

+44
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+44
-1
lines changed
Open diff view settings
Collapse file

‎pom.xml‎

Copy file name to clipboardExpand all lines: pom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>ru.javawebinar</groupId>
66
<artifactId>topjava</artifactId>
7-
<packaging>jar</packaging>
7+
<packaging>war</packaging>
88

99
<version>1.0-SNAPSHOT</version>
1010

Collapse file

‎src/main/webapp/WEB-INF/web.xml‎

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
4+
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
5+
version="4.0">
6+
7+
<display-name>Topjava</display-name>
8+
9+
<servlet>
10+
<servlet-name>userServlet</servlet-name>
11+
<servlet-class>ru.javawebinar.topjava.web.UserServlet</servlet-class>
12+
<load-on-startup>0</load-on-startup>
13+
</servlet>
14+
<servlet-mapping>
15+
<servlet-name>userServlet</servlet-name>
16+
<url-pattern>/users</url-pattern>
17+
</servlet-mapping>
18+
19+
</web-app>
Collapse file

‎src/main/webapp/index.html‎

Copy file name to clipboard
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<html lang="ru">
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>Java Enterprise (Topjava)</title>
5+
</head>
6+
<body>
7+
<h3>Проект <a href="https://github.com/JavaWebinar/topjava" target="_blank">Java Enterprise (Topjava)</a></h3>
8+
<hr>
9+
<ul>
10+
<li><a href="users">Users</a></li>
11+
</ul>
12+
</body>
13+
</html>
Collapse file

‎src/main/webapp/users.jsp‎

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<%@ page contentType="text/html;charset=UTF-8" %>
2+
<html lang="ru">
3+
<head>
4+
<title>Users</title>
5+
</head>
6+
<body>
7+
<h3><a href="index.html">Home</a></h3>
8+
<hr>
9+
<h2>Users</h2>
10+
</body>
11+
</html>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.