String user = req.getParameter("user");
String password = req.getParameter("passwd");
String url_address = req.getParameter("url");
//The name of the JDBC driver to use
String driverName="oracle.jdbc.driver.OracleDriver";
//The JDBC Connection url
String connectionURL="jdbc:oracle:thin:@" + url_address;
//The JDBC Connection Object
Connection conn = null;
try
{
//create an instance of the JDBC driver so that it has a chance to register itself
Driver driver = (Driver)Class.forName(driverName).newInstance();
//create a new database connection.
conn = DriverManager.getConnection(connectionURL, user, password);