What method is used to create database connection in
servlets?

Answer Posted / raghu

DataSource.getConnection()

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you create deadlock on your servlet?

702


What is api in servlet?

615


What do you mean by session tracking?

765


What are the key methods that are involved in processing of http servlets?

722


Name the packages that work with servlet?

621






How is an application exception handling is done using a servlet?

615


What is load-on-startup in servlet?

664


What is setattribute in servlet?

634


What are some disadvantages of storing session state in cookies?

669


Difference between doget and dopost?

782


What is a servlet?

694


What methodology can be followed to store more number of objects in a remote server?

1900


What are some advantages of storing session state in cookies?

684


What is the difference between jsp and servlet life cycle?

785


How do you configure a centralized error handler in servlets?

609