How do you connect to the database from JSP?

Q

How do you connect to the database from JSP?

✍: Guest

A

A Connection to a database can be established from a jsp page by writing the code to establish a connection using a jsp scriptlets.
Further then you can use the resultset object "res" to read data in the following way.

2013-08-08, 1750👍, 0💬