I am designing a small web application for learning purpose using Apache Tomcat, Eclipse, Java EE (Servlet, JSP, Bean), MySql Database as backend. I have configured Eclipse to include Tomcat, MySql connector.
The Project:
- A HTML form for entering UserName, Email, and Password.
- Servlet for passing parameter to Java Bean.
- Java Bean to passing parameter to MySql database.
What's Working: The application runs when the Java Bean has no connectivity to database using (return statement).
What's not working: The application does not work when I use database connectivity in Java Bean. And the MySql database is not updated with parameters.
What I did: I checked with database connectivity it's working fine with individual Java Class files and it can pass parameters to MySql database.
I think there is some problem in my Web Application and not connectivity with database. So can anyone suggest what i should do?