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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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.

It is sorta covered in the JavaRanch Style Guide.
subject: Prob using DataSource
Similar Threads
Clarification of Concept: DataSource of Struts
data-sources with struts and oracle 10g
Connection pooling
data-sources with oracle
Struts+mySQL+JBoss configuration