struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terje Hopsø <tehos...@online.no>
Subject Accessing database in java and jsp?
Date Tue, 08 Jul 2003 11:31:04 GMT
Hello
 
I have created a datasource in my struts-config.xml. But I cant find out how
to use it. Creating my datasource in my web.xml works fine. Any tips?
 
- Terje
 
struts-config.xml:
...
 <data-sources>
  <data-source>
   <set-property value="true" property="autoCommit" />
   <set-property value="My database" property="description" />
   <set-property value="com.sybase.jdbc2.jdbc.SybDriver"
property="driverClass" />
   <set-property value="10" property="maxCount" />
   <set-property value="2" property="minCount" />
   <set-property value="xxxx" property="user" />
   <set-property value="xxxxx" property="password" />
   <set-property value="jdbc:sybase:Tds:mycomputer:4000/mydatabase"
property="url" />
  </data-source>
 </data-sources>
...
 


Mime
View raw message