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
6dd615b1
Commit
6dd615b1
authored
Nov 27, 2022
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dodatkowe linki do edycji klienta
parent
73403791
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
application.properties
PC30-SklepSpring/src/main/resources/application.properties
+3
-0
customer.jsp
...klepSpring/src/main/webapp/WEB-INF/templates/customer.jsp
+2
-1
customers.jsp
...lepSpring/src/main/webapp/WEB-INF/templates/customers.jsp
+7
-1
No files found.
PC30-SklepSpring/src/main/resources/application.properties
View file @
6dd615b1
...
...
@@ -4,3 +4,6 @@ spring.datasource.password=abc123
spring.mvc.view.prefix
=
/WEB-INF/templates/
spring.mvc.view.suffix
=
.jsp
# server.port=9090
# server.servlet.context-path=/sklep
PC30-SklepSpring/src/main/webapp/WEB-INF/templates/customer.jsp
View file @
6dd615b1
...
...
@@ -19,6 +19,7 @@
<tr><th>
Adres:
</th><td>
${customer.address}
</td></tr>
<tr><th>
Miasto:
</th><td>
${customer.postalCode} ${customer.city}
</td></tr>
</table>
<c:url
var=
"adres_do_edycji"
value=
"/customers/${customer.customerEmail}/edit"
/>
<div
class=
"action"
><a
href=
"${adres_edycji}"
>
Edytuj
</a></div>
</body>
</html>
PC30-SklepSpring/src/main/webapp/WEB-INF/templates/customers.jsp
View file @
6dd615b1
...
...
@@ -18,7 +18,7 @@ Obojętnie, czy aplikacja działabezpośrednio pod adresem localhost:8080/ , czy
<h1>
Lista klientów
</h1>
<table
class=
"data-table"
>
<tr><th>
Email
</th><th>
Nazwa
</th><th>
Telefon
</th><th>
Adres
</th><th>
Miasto
</th></tr>
<tr><th>
Email
</th><th>
Nazwa
</th><th>
Telefon
</th><th>
Adres
</th><th>
Miasto
</th><
th/><
/tr>
<c:forEach
var=
"customer"
items=
"${customers}"
>
<c:url
var=
"adr"
value=
"/customers/${customer.customerEmail}"
/>
<tr>
...
...
@@ -27,8 +27,14 @@ Obojętnie, czy aplikacja działabezpośrednio pod adresem localhost:8080/ , czy
<td>
${customer.phoneNumber}
</td>
<td>
${customer.address}
</td>
<td>
${customer.postalCode} ${customer.city}
</td>
<c:url
var=
"adres_do_edycji"
value=
"/customers/${customer.customerEmail}/edit"
/>
<td
class=
"action"
><a
href=
"${adres_do_edycji}"
>
Edytuj
</a></td>
</tr>
</c:forEach>
</table>
<c:url
var=
"adres_new"
value=
"/customers/new"
/>
<div
class=
"action"
><a
href=
"${adres_new}"
>
Dodaj nowego klienta
</a></div>
</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