Connect JavaEE Application to MySQL Database on GoDaddy Shared Linux Hosting Server

I was trying to find some example to connect MySQL database with my Java Shared Hosting Plan on GoDaddy.com but I could not. Well, I don’t want to say that GoDaddy has the best plan for hosting Java application. I still can not figure out how to use JSTL, custom url-pattens in the web.xml and forward requests from a servlet to JSP page. Also, we have to put http://<domain_name>/servlet/<servlet_name> to access servlet. But, here is simple working example to show you database connection from hosting to MySQL server on GoDaddy Shared Hosting.

Take a look at the example at link : GoDaddyJavaMySQL

DBConnector.java

GoDaddyJavaMySQL.java

web.xml