O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required