Upgrade from JSP to Thymeleaf with SpringMVC and Spring Boot

Replace Java Server Pages with Thymeleaf – the modern, design friendly, template engine, to build better Spring web apps
Upgrade from JSP to Thymeleaf with SpringMVC and Spring Boot
File Size :
1.94 GB
Total length :
3h 58m

Category

Instructor

Matt Greencroft

Language

Last update

10/2019

Ratings

4.2/5

Upgrade from JSP to Thymeleaf with SpringMVC and Spring Boot

What you’ll learn

Be confident and competent in creating web front ends for Spring projects
Able to integrate externally produced professional HTML designs into your Spring projects.
Able to build robust HTML pages that can be opened, viewed and edited by designers without any knowlege of Spring, Java, JSP etc.

Upgrade from JSP to Thymeleaf with SpringMVC and Spring Boot

Requirements

You will need some basic experience having created websites in either SpringMVC or Spring Boot to do this course. As long as you know how to build a simple controller, and to pass data to a view using a model, you’ll be able to follow along.
Some familiarity with HTML will be helpful, but you certainly don’t need to be an HTML expert. Knowing what the common tags such as DIV, SPAN, H1, P, TABLE , TR, TD etc do, and how to use them will be good enough
Although this course teaches you how to upgrade from using JSP, you don’t need to have written any JSP code to do this course – you can follow along and learn the better way instead!
No prior knowlege of Thymeleaf is needed. As long as you have basic familiarity with a modern Java IDE such as Eclipse or IntelliJ, then you’ll be able to work along with me. On this course I provide you with lots of sample code, and I also take you through setting up and configuring Thymeleaf.

Description

If you are building web front-ends with Spring Boot or Spring MVC, and you’re still using JSP (Java Server Pages) then this course is for you. Thymeleaf is a great templating engine which replaces JSP, and you can easily use it in any Spring MVC or Spring Boot application. Unlike JSP it’s a pleasure to use. With Thymeleaf you work with regular HTML, which means that a lot of the frustration of JSP is taken away.If you’ve been given a set of HTML and CSS templates to use for a project, Thymeleaf lets you integrate them with ease. Or if you’re building the functionality and handing off to a web-designer, they’ll be able to work with your code with no knowlege of Java or Spring. In this course you’ll learn:How Thymeleaf allows you to seamlessly work with Web DesignersHow to integrate your code into standard HTML/XHTML without breaking the designHow to manage forms, validation and error handlingHow to convert a legacy JSP project to ThymeleafBy the end of this course you’ll be confidently able to build functional and effective front-ends for your Spring web applications. As well as teaching programming, I’ve been building websites with Spring for a number of years, and I started using Thymeleaf about 3 years, ago. And I’d never go back! Amongst other things I find Thymeleaf sites much easier to support and maintain as application requirements change, and I think that’s why I’m so much of a fan of it!

Overview

Section 1: Chapter 1 – Introduction

Lecture 1 What is Thymeleaf?

Lecture 2 Why might you want to use Thymeleaf?

Lecture 3 Installing Thymeleaf

Lecture 4 Getting support while you’re learning

Section 2: Chapter 2 – Getting Started

Lecture 5 Setting up a controller and configuring our project

Lecture 6 Referring to the Thymeleaf Documentation

Lecture 7 Adding our first HTML file to the project

Lecture 8 Making an HTML file a Thymeaf template

Lecture 9 How to create valid XHTML code

Section 3: Chapter 3 – Attributes

Lecture 10 the th:text tag

Lecture 11 Evaluating expressions with variables

Lecture 12 Using th:text with the Span tag

Lecture 13 Extracting data from a model map

Lecture 14 Concatenating strings

Lecture 15 Displaying HTML with Thymeleaf

Lecture 16 Formatting dates and strings with Utility Objects

Section 4: Chapter 4 – Loops, Conditions and Links

Lecture 17 Introducing links

Lecture 18 Creating dynamic links

Lecture 19 Links with multiple parameters

Lecture 20 Looping through collections

Lecture 21 Choosing whether to display an HTML block

Lecture 22 Using the ternary operator

Section 5: Chapter 5 – Building Pages

Lecture 23 Including CSS files in your Thymeleaf project

Lecture 24 Including images

Lecture 25 Creating fragments – re-useable HTML blocks

Lecture 26 Using fragments

Lecture 27 Creating local variables

Lecture 28 Applying dynamic styles

Section 6: Chapter 6 – Working with Forms

Lecture 29 Introducing the challenge for this chapter and practical exercise 1

Lecture 30 Walkthrough of solution to practical exercise 1

Lecture 31 Populating an HTML Select dynamically

Lecture 32 Designing a backing bean object

Lecture 33 Binding a backing bean to an HTML form

Lecture 34 Sending form data to a controller

Lecture 35 Validation and Representation

Lecture 36 Displaying validation errors

Section 7: Chapter 7 – Thymeleaf and Spring MVC

Lecture 37 Exploring the case study – a Spring MVC Project

Lecture 38 Adding Thymeleaf dependencies into our project

Lecture 39 Configuring the project to use Thymeleaf

Lecture 40 Using both Thymeleaf and JSP in the same project

Lecture 41 Creating our first Thymeleaf HTML template

Lecture 42 Practical exercise 2

Lecture 43 Walkthrough of practical exercise 2

Lecture 44 Practical exercise 3

Lecture 45 Walkthrough of practical exercise 3

Lecture 46 Wrapping up the exercise

Section 8: Extra chapter – Page layouts

Lecture 47 Why we might want to use a page layout

Lecture 48 Structuring a page

Lecture 49 Creating the layout html file

Lecture 50 Testing the layout

Lecture 51 Passing parameters through to a fragment

Section 9: Goodbye!

Lecture 52 Bonus lecture

Java web developers who want to upgrade their JSP skills,Anyone building websites with Spring Boot or Spring MVC,Anyone needing to create a web-front end for existing Spring projects

Course Information:

Udemy | English | 3h 58m | 1.94 GB
Created by: Matt Greencroft

You Can See More Courses in the Developer >> Greetings from CourseDown.com

New Courses

Scroll to Top