Develop a web application using Tomcat Create project Choose a Java Enterprise project and select the Web application Framework, select your application server( If you don’t have one in idea, just click new and choose the root folder of your server to create one). Click Finish and you are ready to write your servlet Add JDBC support using DataSource and JNDI( taking mysql as an example) add driver to server-root-folder/lib/ add context.xml to context-root/META-INF/ (create one if not exist) with the following content: < Context > < Resource name = "jdbc/YourJNDIRegisteredName" auth = "Container" type = "javax.sql.DataSource" maxTotal = "50" maxIdle = "30" maxWaitMillis = "10000" logAbandoned = "true" username = "root" password = "" driverClassName = "com.mysql.jdbc.Driver" url = "jdbc:mysql://localhost:3306/YourMysqlDBName...
Learn programming, still on the way