Win a copy of Head First Android this week in the Android forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Servlet doesn't show data

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
i'm using Class.forName("com.mysql.jdbc.Driver"); for connecting to a mysql database in a servlet , and the class file is on my deploy directory but when i tried to test it , using the browser it only displays the com.mysql.jdbc.Driver and not the data, could be caused for the version of my connector ?, i'm using Apache Tomcat/4.1.31 and mysqlconnector 3.0.7
below is a part of my code :
Class.forName("com.mysql.jdbc.Driver");
prot_db="jdbc";
subprot_db="mysql";
host_db="//localhost";
nom_db="/inventa";
usr_db="julio";
pw_db="one";
theConnection = DriverManager.getConnection(prot_db+":"+subprot_db+":"+host_db+nom_db, usr_db ,pw_db);

any help would be appreciated
 
Ranch Hand
Posts: 489
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator


but when i tried to test it , using the browser it only displays the com.mysql.jdbc.Driver and not the data



Kindly post your test code.

cheers,
ram.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I agree, but since this is a duplicate of the thread here, I'm going to close this copy till we have enough information to know what the question is.

Dave
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic