Accessing a Database
- Ideally, database access should occur outside of Struts
- For example, using a persistence framework, or Object to
Relational Mapping (ORM) framework
- Not practical for us given our time frame
- At the very least, database connections should be managed and pooled
using the DataSource interface
- When the container provides a DataSource manager, that is preferred to
using one provided by Struts
- So use Tomcat's DataSource manager as described in the JSP Lab Exercise