jdbc and struts

Hi,pls tell me where i can find simple examples for connecting oracle database using strutsregards,dhanya
[133 byte] By [DHANYAa] at [2008-2-19]
# 1
> pls tell me where i can find simple examples for> connecting oracle database using strutsGOOGLE
xHackera at 2007-7-16 > top of java,Enterprise & Remote Computing,AVK Portability...
# 2

Hi Dhanya,

what container/server are you using? If you are using a Java web server or a Java EE application server, then you should not have to do any Oracle specific thing in your code. Create a datasource and use JNDI to look up the datasource(jdbc.sql.DataSource). Then call datasource.getConnection().

When you deploy, configure the datsource to connect to Oracle, for that matter any JDBC compliant database.

Sahoo

sahooa at 2007-7-16 > top of java,Enterprise & Remote Computing,AVK Portability...
# 3
sds
dhingraa at 2007-7-16 > top of java,Enterprise & Remote Computing,AVK Portability...