Configuration of XMLs for Struts DataBase Connection
843833Aug 2 2005 — edited Jan 25 2008Hi,
I am new to Struts.When i am trying to Access the data base in my struts application action class i am getting "servlet is not available" error.
I added bellow data-sources entry in struts-cofig.xml.
<data-sources>
<data-source>
<set-property property="driverClass"
value="oracle.jdbc.driver.OracleDriver" />
<set-property property="url"
value="jdbc:oracle:thin:@IP:PORT:SID" />
<set-property property="maxCount"
value="5"/>
<set-property property="minCount"
value="1"/>
<set-property property="user"
value="User"/>
<set-property property="password"
value="Password"/>
</data-source>
</data-sources>
surprisingly when i change the code in Action class to get the connection using "DriverManger" it is working..
do i need to do any changes in Configuration files like server-conf.xml..?
i am using Jboss as web-server with out any IDE.
please can any one help me...?
Thanks in advance..
Srini