Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prob using DataSource

Mothea Anil Kumar
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic