Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
javab_20230617
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
javab_20230617
Commits
6abe2bd6
Commit
6abe2bd6
authored
Jul 01, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Usuwam PC23, bo problemy
parent
97d96de0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
131 deletions
+0
-131
.gitignore
PC23-Serwlety/.gitignore
+0
-30
pom.xml
PC23-Serwlety/pom.xml
+0
-51
HelloServlet.java
...src/main/java/pl/alx/kjava/pc23serwlety/HelloServlet.java
+0
-29
web.xml
PC23-Serwlety/src/main/webapp/WEB-INF/web.xml
+0
-7
index.jsp
PC23-Serwlety/src/main/webapp/index.jsp
+0
-14
No files found.
PC23-Serwlety/.gitignore
deleted
100644 → 0
View file @
97d96de0
target/
### IntelliJ IDEA ###
.idea/
*.iws
*.iml
*.ipr
### Eclipse ###
.project
.classpath
.settings/
.apt_generated/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
\ No newline at end of file
PC23-Serwlety/pom.xml
deleted
100644 → 0
View file @
97d96de0
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
pl.alx.kjava
</groupId>
<artifactId>
PC23-Serwlety
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<name>
PC23-Serwlety
</name>
<packaging>
war
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.target>
11
</maven.compiler.target>
<maven.compiler.source>
11
</maven.compiler.source>
<junit.version>
5.9.2
</junit.version>
</properties>
<dependencies>
<dependency>
<groupId>
jakarta.servlet
</groupId>
<artifactId>
jakarta.servlet-api
</artifactId>
<version>
6.0.0
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-api
</artifactId>
<version>
${junit.version}
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-engine
</artifactId>
<version>
${junit.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
3.3.2
</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
PC23-Serwlety/src/main/java/pl/alx/kjava/pc23serwlety/HelloServlet.java
deleted
100644 → 0
View file @
97d96de0
package
pl
.
alx
.
kjava
.
pc23serwlety
;
import
java.io.*
;
import
jakarta.servlet.http.*
;
import
jakarta.servlet.annotation.*
;
@WebServlet
(
name
=
"helloServlet"
,
value
=
"/hello-servlet"
)
public
class
HelloServlet
extends
HttpServlet
{
private
String
message
;
public
void
init
()
{
message
=
"Hello World!"
;
}
public
void
doGet
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
IOException
{
response
.
setContentType
(
"text/html"
);
// Hello
PrintWriter
out
=
response
.
getWriter
();
out
.
println
(
"<html><body>"
);
out
.
println
(
"<h1>"
+
message
+
"</h1>"
);
out
.
println
(
"</body></html>"
);
}
public
void
destroy
()
{
}
}
\ No newline at end of file
PC23-Serwlety/src/main/webapp/WEB-INF/web.xml
deleted
100644 → 0
View file @
97d96de0
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns=
"https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
version=
"6.0"
>
</web-app>
\ No newline at end of file
PC23-Serwlety/src/main/webapp/index.jsp
deleted
100644 → 0
View file @
97d96de0
<
%@
page
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<title>
JSP - Hello World
</title>
</head>
<body>
<h1><
%=
"
Hello
World
!"
%
>
</h1>
<br/>
<a
href=
"hello-servlet"
>
Hello Servlet
</a>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment