This servlet does not run after the "Class.forName("com.mysql.jdbc.Driver");", I mean to say that any code after this command does not run ... but it also does not give any error. The project also builds successfully. What could be the problem ????
:confused: :?:
Do you get an exception...?? Try finding out whether conn is null. This will confirm whether connection is being established or not in the first place.
Do you get an exception...?? Try finding out whether conn is null. This will confirm whether connection is being established or not in the first place.
Are you running your code in an ide or via command line. Also , check the condition if(conn == null). If it is null it means connection is not being established.