Need to put it between context> Server.xml
factory name> org.apache.commons.dbcp.basicDataSourceFactory value> parameter> driverclassname Name> Oracle.jdbc.driver.racledriver value> parameter> URL name> jdbc: Oracle: Thin: @ 127.0.0.1: 1521: ORA9 Value> parameter> username name> laoyao value> parameter> password name> 8888 value> Parameter> maxactive name> 50 parameter> maxidle name> 10 value> parameter> maxwait name> -1 value> parameter> resourceparams>
Then it is web.xml
Oracle ConnectionG Pool description> jdbc / oracle res-ref-name> javax.sql.datasource res-type> < Res-auth> container res-auth> resource-ref>
Test JSP