JNDI Datasource HOW-TO
843836Dec 15 2004 — edited Feb 24 2005Hi,
I am going through JNDI Datasource HOW-TO found at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
I am using Oracle 9i so I went for instructions given below Oracle 8i. I did everything they said, also included javax.naming.*,javax.sql.* in my JSP file. Now the problem is my JSP is not connecting to the database itself. I just see a blank page but if i use my old method of connecting to database, i see the results on the screen. Can anybody help on this please ???
Also, what exactly does the code
Context envContext = (Context)initContext.lookup("java:/comp/env");
mean while connecting to the database ???
Thanks !