Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
java_dzienna_15_09
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
java_dzienna_15_09
Commits
9f3dc486
Commit
9f3dc486
authored
Sep 29, 2022
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Products2 - HTML z div
parent
609ae410
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
Products2.java
PC26-SklepWeb/src/main/java/sklep/web/Products2.java
+2
-5
No files found.
PC26-SklepWeb/src/main/java/sklep/web/Products2.java
View file @
9f3dc486
...
...
@@ -37,13 +37,10 @@ public class Products2 extends HttpServlet {
try
(
DBConnection
db
=
DBConnection
.
open
())
{
ProductDAO
productDAO
=
db
.
productDAO
();
List
<
Product
>
products
=
productDAO
.
readAll
();
out
.
println
(
"<p>Odczytano "
+
products
.
size
()
+
" produktów:</p>"
);
out
.
println
(
"<ul>"
);
out
.
println
(
"<p>Odczytano "
+
products
.
size
()
+
" produktów.</p>"
);
for
(
Product
product
:
products
)
{
out
.
println
(
"<li>"
+
product
.
getProductName
()
+
" za cenę "
+
product
.
getPrice
()
+
"</li>"
);
out
.
println
(
product
.
toHtml
()
);
}
out
.
println
(
"</ul>"
);
}
catch
(
DBException
e
)
{
e
.
printStackTrace
(
out
);
}
...
...
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