Creating the Web Interface
Now that you have the entity and session beans in place, you can create the Web interface for the application. Applying some of the concepts you have seen earlier in this book, the Web application uses a combination of servlets and Java Server Pages. The application uses a simple Model-View-Controller setup in which the servlets act as controllers, translating requests from a browser into changes in the object model. The servlets then forward the request on to a Java Server Page for rendering the view.
Although the application doesn't use custom tags, it does create Java Server Pages that render specific parts of the application. For example, the main page shows information about the user, the product catalog, and a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access