considering all the JARs are setup properly as mentioned in above posts
upon exporting the project WAR to the tomcat webapps folder and running it
the above code successfully prints the contents of the table ( login - which has 3 columns)
Joined: Aug 06, 2009
advice from a java noobie (wannabe pro) to all java coders !!
^^^^^^^^^^^^^ Helps a lot in finding where exactly the error is coming from
even if your program is 6 lines , use it :P