How can we insert data through
java servlet?
I can insert data to table by using
JSP Scriptlet easily but I have a hard time with servlet.
I am positive that the above code function fine. The problem is whenever I call UserToDB() class inside the servlet, and I got this error: java.lang.ClassNotFoundException: org.postgresql.Driver which mean that my conn (connection) is not connected to the database but I have ensure to do so by calling openConn() before start the transaction.
This is my servlet code: