> -----Ursprungliche Nachricht-----
> Von: CLAIRE Celine [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 7. Oktober 2002 17:07
> An: [EMAIL PROTECTED]
> Betreff: tomcat3.3.1 JDBC
>
>
> hello!
> I use tomcat 3.3.1
> I would like to know if a web application can access a database
> via a JDBC driver?
> thanks
They can. Just install the dbdriver for your database ( i.e. mySQL ),
load the driverManager and connect to your database.
It's suggested to write a class for it instead of using it directly in
a jsp and it's usefull to build a sigletonlike class to controll who and
when a page connects to the database to minimize db accesses and make sure
not
to corrupt your tables with to syncron db accesses. ( a transactionable
table would help too ).
M.Schwarz
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>