#
Thymeleaf vs Java Server Pages (JSP)
This article explains to you which are the differences between Thymeleaf and Java Server Pages (Thymeleaf vs JSP).
When you create a web page into a server-side Java Web Application, you will follow the schema below:
Both JSP and Thymeleaf use tags, but each tag is specific to the implementation.
Take a look at the Thymeleaf template :
and also to the JSP (Java Server Pages) template:
Info
- JSP is the old fashion of creating the View into a MVC application
- As you can see Thymeleaf is closer to the HTML format and for this reason Thymeleaf is named "a natural template"
- With Thymeleaf you have more control to the template code
- Thymeleaf could be seen as an improvement to the Java Server Pages (JSP)
- The development speed is a little bigger with Thymeleaf
- Both JSP and Thymeleaf follow the Model-View-Controller pattern