Help please! Problem accessing db connections from servlets
843840Nov 14 2002 — edited Nov 15 2002Hi all,
I am creating a web application using MVC architecture using jsp,servlets and beans.
I have created a login.jsp which accesses the LoginHandlerServlet.class.
in login.jsp there are two fields. One is username and one is password. When fields are filled and submitted it redirects it to LoginHandlerServlet. Now in the servlet it calls a passwordBean which in turn calls a connectionBean which gives the connection to passwordBean and passwordBean checks the username and password and returns the result to servlet.
Now when I run this application through tomcat. I am getting a error
Error : oracle:jdbc:Driver:OracleDriver
But when I append a main method in passwordBean which calls the corresponding method my driver gets initialised and I get the perfect output.
Please let me know what is wrong with this. Thanking you all in advance.
Regards,