1. I writen a code for access database connection through contextlistener,
2. Attribute class
How can i achieve the availabelity of database connection for the entier application.... if i write a servlet class for access data items from tabel, their also i need connection object, statement object and more as same like Attribute class( which shown above 2).
please any one can help me how can i write a code in servlet for access a database items.