Spring Boot Bootcamp – Workbooks and Challenges
)}

Workbook 2.7

Screen Shot 2022-08-15 at 11.19.34 PM.png

Task 1

Inside the handler method, add your name as a model attribute.

Task 2

Create a paragraph element with style="font-weight: bold" formatting that displays the name.

Screen Shot 2022-06-17 at 6.41.41 PM.png

Task 3

Create an unordered list with as many list items as the number of letters in your name. Each list item will display the name.

Test Case: Rayan


Screen Shot 2022-06-17 at 6.42.17 PM.png

Task 4

Common types from which Thymeleaf can leverage utility methods are:

  • #dates
  • #strings
  • #arrays
  • #lists
  • #numbers

Inside the Thymeleaf Repo, the Strings class contains a substring utility method.

1. Given a model attribute,

2. It returns a substring that starts from one character's index,

3. and ends at another.

Screen Shot 2022-08-16 at 12.28.58 AM.png

Using this information, apply the utility method such that each list item displays one more letter than the previous.

Test Case: Rayan


Screen Shot 2022-06-17 at 6.42.47 PM.png

Good Luck!

Feedback Summary
5.0
3 students
5

100%
4

0%
3

0%
2

0%
1

0%
Written Reviews
There are no written reviews yet.