16.7. WEB-INF/classes/com/cybertrails/store

Because we are keeping our tags in packages, we need to have the Item.java and Order.java listings in this folder. These two classes are not beans or tags. They are classes that stand in for the objects (items and orders) that appear in the real world. As we talked about in Chapter 5, it is generally good design practice to have classes representing the objects in the real world and then define methods for what can be done to and with those things.

Java on the Web still maintains the same principle, of course, but with the restrictions of HTML, such as with forms, things work a little differently. It's not really necessary, for instance, to create a “Customer” class. While a customer is an important ...

Get Java™ for ColdFusion® Developers 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.