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

Listing Movies

The shopping cart application lists movies in a generic way. Movies may be listed either as part of a shopping cart or as a listing of movies available in the store. The current implementation simply lists all movies available; a refinement of this approach could provide search criteria and allow the user to filter on criteria such as title or release date.

Since XML and XSLT are used to perform the final display of the movies information, we can manage the differences in the shopping cart listing and the all movies listing in the XSLT script. The servlet that produces the page and the action class that prepares access to the listing servlet just accepts parameters for the XSLT template script and query, and uses those parameters ...

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