protected DataSource getDataSource ( HttpServletRequest request , String key ) { // Return the requested data source instance return ( DataSource ) getServletContext ( ) . getAttribute ( key + getModuleConfig ( ) . getPrefix ( ) ) ; }
Return the specified data source for the current Struts module .