Create a java class that manages your database related things, for e.g. making connection, retrieving result set etc. Under META-INF folder create a file called context.xml where you define your database connection settings.
From your jsp, use JSTL/EL to retrieve results and other things.
Joined: Jan 05, 2012
I can't understand how to connect my jsp page with my sql please guide with step by step process.