File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Prob using DataSource

Mothea Anil Kumar
Greenhorn

Joined: Aug 01, 2005
Posts: 22
Hi,

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

<struts-config>
<data-sources>

<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"/>
</data-source>

</data-sources>
....
...
</struts-config>

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

Thanks,
Anil
 
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