Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
java_weekendowa_20221008
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_weekendowa_20221008
Commits
95056d93
Commit
95056d93
authored
Nov 26, 2022
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uzupełnienie customers
parent
86068591
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
3 deletions
+54
-3
customer.jsp
...klepSpring/src/main/webapp/WEB-INF/templates/customer.jsp
+23
-0
customer_form.jsp
...pring/src/main/webapp/WEB-INF/templates/customer_form.jsp
+3
-3
customers.jsp
...lepSpring/src/main/webapp/WEB-INF/templates/customers.jsp
+28
-0
No files found.
PC30-SklepSpring/src/main/webapp/WEB-INF/templates/customer.jsp
0 → 100644
View file @
95056d93
<
%@
page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%
>
<
%@
taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%
>
<
%@
taglib
prefix=
"s"
uri=
"http://www.springframework.org/tags"
%
>
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Klient ${customer.name}
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/styl.css"
/>
</head>
<body>
<h1>
Klient ${customer.name}
</h1>
<table>
<tr><td>
Email:
</td><td>
${customer.customerEmail}
</td></tr>
<tr><td>
Nazwa:
</td><td>
${customer.name}
</td></tr>
<tr><td>
Numer tel:
</td><td>
${customer.phoneNumber}
</td></tr>
<tr><td>
Adres:
</td><td>
${customer.address}
</td></tr>
<tr><td>
Miasto:
</td><td>
${customer.postalCode} ${customer.city}
</td></tr>
</table>
</body>
</html>
PC30-SklepSpring/src/main/webapp/WEB-INF/templates/customer_form.jsp
View file @
95056d93
...
...
@@ -21,9 +21,9 @@
</td>
</tr>
<tr>
<td><f:label
path=
"
customerN
ame"
>
Nazwa / imię i nazwisko:
</f:label></td>
<td><f:input
path=
"
customerN
ame"
placeholder=
"Ala Kowalska"
type=
"text"
/>
<f:errors
path=
"
customerN
ame"
cssClass=
"form-error"
element=
"div"
/>
<td><f:label
path=
"
n
ame"
>
Nazwa / imię i nazwisko:
</f:label></td>
<td><f:input
path=
"
n
ame"
placeholder=
"Ala Kowalska"
type=
"text"
/>
<f:errors
path=
"
n
ame"
cssClass=
"form-error"
element=
"div"
/>
</td>
</tr>
<tr>
...
...
PC30-SklepSpring/src/main/webapp/WEB-INF/templates/customers.jsp
0 → 100644
View file @
95056d93
<
%@
page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%
>
<
%@
taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%
>
<
%@
taglib
prefix=
"s"
uri=
"http://www.springframework.org/tags"
%
>
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Lista klientów
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/styl.css"
/>
</head>
<body>
<h1>
Lista klientów
</h1>
<table>
<tr><td>
Email:
</td><td>
Nazwa:
</td><td>
Numer tel:
</td><td>
Adres:
</td><td>
Miasto:
</td></tr>
<c:forEach
var=
"customer"
items=
"${customers}"
>
<tr>
<td>
${customer.customerEmail}
</td>
<td>
${customer.name}
</td>
<td>
${customer.phoneNumber}
</td>
<td>
${customer.address}
</td>
<td>
${customer.postalCode} ${customer.city}
</td>
</tr>
</c:forEach>
</table>
</body>
</html>
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