my dog learned polymorphism
The moose likes Struts and the fly likes Prob using DataSource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Prob using DataSource" Watch "Prob using DataSource" New topic

Prob using DataSource

Mothea Anil Kumar

Joined: Aug 01, 2005
Posts: 22

I am using "datasource" in struts. I defined in struts-config.xml as,


<data-source key="jdbc/struts">
<set-property property="autoCommit" value="true"/>
<set-property property="driverClass" value="sun.jdbc.odbc.JdbcOdbcDriver"/>
<set-property property="maxCount" value="5"/>
<set-property property="minCount" value="1"/>
<set-property property="user" value="sa"/>
<set-property property="password" value=""/>
<set-property property="url" value="jdbc dbc:testing"/>


My doubt is it possible to use this datasource directly in ActionServlet.
or any other way to do this . Plz tell me.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Prob using DataSource
It's not a secret anymore!