How to write a well-designed JTE application using Spring Boot
Table of Content
· Introduction
· JSP is bad.
· Modern Java Template Engines (JTE, Thymeleaf, Freemarker)
· Install JTE Plugin
· Practice always everything to understand deeply
· Conclusion
· Read more…
Introduction
In the Java world, we frequently use template engines like Tymeleaf and Freemarker to have dynamic pages that come from the server side. The server could provide static pages, and anything dynamic is handled by Javascript, or the server could dynamically build the HTML page using a template engine. Before we used to use JSP pages (I’m still using unfortunately in my current project 🤔), and JSP is bad, let’s figure it out why.
JSP is bad.
Here’s why JSP is bad. (Source: my job.)
- Tight Coupling of Business Logic and Presentation: You have a tight coupling of business logic and presentation, mixing Java code with HTML can lead to poor separation of concerns. This results in hard-to-maintain and less readable code (especially in larger projects).
- Outdated Approach: JSP has been around for a long time…