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 ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.