Reputation: 225
Upvotes: 5
Views: 4412
Reputation: 114
It's just a matter of user choice. Thymeleaf and JSP are both viewing templates with both having edge over the other.
I like JSP for its particular simplicity of usage but on the other hand, Thymeleaf resolution for internationalization i18n is to say the least great, amongst extra expression it has like the way it handles the context path automatically.
Thymeleaf is a bit complicated when resolving variables from model unlike in JSP, where you can easily concatenate literals with variable expressions. Furthermore, JSP can easily resolve URLs from variable expression directly from database whereas Thymeleaf has difficulty achieving that.
I have used JSP for a while now, likewise Thymeleaf and I must say, both are great technologies. If your application is simple and would not allow for internationalization support, I would say JSP is not a bad choice. But Thymeleaf is better for a robust application that requires internalization amongst others. The idea of tagging JSP "old technology" is not entirely true at all.
So, my conclusion is it's a matter of choice.
Upvotes: 7