The DBSessionBean Class
The DBSessionBean class starts off in a very similar way to the old DBSession class.
Its constructor opens a connection to a suitable database.
It will implement HttpSessionBindingListener, and the valueUnbound() event-dispatching method is responsible for closing the connection.
The new class has a read-only property called menu, which returns a suitable select element. This is defined by the following method on the Bean class. . .