O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

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

The Checkout Process

The checkout process for our movie store example requires us to display the contents of our cart and the display the total cost for the contents of the cart. Since we have been using the movies listing servlet (MoviesChooser) to list the contents of our cart, it would be convenient to use this same code in the checkout process. The only thing we would have to add to the output would be the total cost items on the bottom of the checkout page. Unfortunately, we use XSL to produce the output for the movies listing page and the XSL template script language does not have the capability to compute totals. The best way for us to obtain the totals is to create a JavaBean to provide this information, which we do with the CartTotalsBean ...

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