Jakarta Server Faces (JSF) is a powerful Jakarta EE API for building outstanding UIs, using both client and server features.
It goes much further when you are using JSPs, as you are not only using Java code inside HTML code but also referencing code injected in the server context.
This recipe will show you how to use the Facelet template feature to get more flexibility and reusability from your layout template.