<%<br>String connectionURL = "jdbc:mysql://localhost:3306/database_name";<br> Connection connection = null;<br> Statement statement = null;<br><br>Class.forName("com.mysql.jdbc.Driver").newInstance();<br> connection = DriverManager.getConnection(connectionURL, "database_username", "database_password");<br> statement = connection.createStatement(); <br><br>%>
jsp connectivity<br>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");<br>
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2010 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/12633/default.asp?cachecommand=bypass