My Oracle Support Banner

Sample JSP to test JDBC Connections (Doc ID 566947.1)

Last updated on JUNE 06, 2023

Applies to:

Oracle Containers for J2EE - Version to [Release 9iAS to AS10gR3]
Information in this document applies to any platform.


This code can be used to test a JDBC connection from within an OC4J application (JSP file) to a backend database. This JSP is for testing only, and should not be left deployed to a production system.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Sample Code
 Sample Output

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.