-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jason,
Jason Ling wrote: | the JDBC driver could not be found. I made sure the the jdbc jar | file was in place and rebooted the computer, and the same jsp file | worked. I'm glad you have solved your problem (though rebooting should not have been necessary!). | I am actually learning servlet and jsp. The jsp file is an exercise | from a book but it uses the driver manager method (the forName() | method) which I changed to the DataSource method. Sounds good. Just remember that book examples often omit details like proper exception handling and resource management because print all of that stuff costs money and distracts the reader. I would encourage you to analyze the code you are reading when you write such routines "for real" and make sure that you are doing things like closing all resources in finally blocks and things like that. Also, a "swallowed" exception (one that is caught and ignored completely) is a serious no-no: you should at least log the error in one way or another. Best of luck learning servlets and Java in general. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAke0c5IACgkQ9CaO5/Lv0PDH8wCgsTsXU48pAZ5uY79z1WcoIhON 8wMAn3Bc7ESq5gTcisH5wj0vPrRt2RCW =J27b -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]