1, 2, in Action public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {DataSource dataSource = this.getDataSource (request, Constants.DATASOURCE_KEY); Connection connection = DataSource.getConnection (); // Get connection helpBean HelpBean = new helpBean (); Vector infovv = helpBean.getIteminfos (connection);} 3, constants.javaPackage com.tek.david.database.pool;