I am now working on a web application project for the first time, the application includes registering and adding users to the database, now i wrote a java class called DatabaseManager that implements all database operations, and wrote the JSP page responsible for adding new users, if the registration is successful I need to add the user's details to the database, so I was wondering, do I need to create a instance of DatabaseManager and load the database driver and initialise the connection everytime a new user registers or is there a more efficient way to do it?
thanks