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

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.