File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.

I agree. Here's the link:
subject: Prob using DataSource
It's not a secret anymore!