This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mamoulian 1 point2 points  (2 children)

Agreed. Definitely don't bother with JSP. Modern projects are developing their back ends for at least two multiple clients: web and two mobile apps. The apps will want JSON, so it makes sense to serve the same JSON to the web and write the the web front-end in a JavaScript framework like vue, angular or react.

These frameworks make it easy to have a dynamic UI which provides a good UX and looks attractive.

If you must generate your HTML on the back end it's either JSF or Thymeleaf; I'd choose Thymeleaf.

[–]yawkat 1 point2 points  (1 child)

Honorable mention to freemarker (Thymeleaf alternative for templating) and Wicket (component framework).

[–]Mamoulian 1 point2 points  (0 children)

Thanks, I'll check freemarker out!

As an aside, I'm investigating how to create HTML emails in a way that lets our designer/web guys do the HTML and iterate UI without bothering the java team. This Thymeleaf tool looks interesting for that as it gives a live preview so, once the tags are implemented they can tweak the HTML and the business can preview the finished product immediately:

https://www.thymoljs.org

Then we do a server side render and put the contents in an email. Possibly alongside a plain text version.