Jakarta Faces Application
Jakarta Faces, now just called Faces, is one of two client rendering techniques available in web applications. The other is Jakarta Server Pages (JSP). In this chapter, we will examine a Faces web application that, like our Swing and JavaFX examples, allows you to perform three common finance calculations.
The JSP rendering approach permits the placement of Java source code on an HTML page. Before a JSP page can be rendered, the file is converted into a servlet by the application server. If you have 50 JSP pages, then there will be 50 servlets on the application server. The typical approach in designing an application is to use JSP for rendering by mixing standard HTML, expression language code to access data or call Java methods, and Java source code. These files end with a .jsp
extension. While you can do processing on the page, the common approach is to have a JSP page call upon a servlet for processing and to decide which JSP page to return to the browser...