struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yann Cébron" <yann...@yahoo.de>
Subject Re: Accessing database in java and jsp?
Date Tue, 08 Jul 2003 19:44:08 GMT
This might be a good start to read:

http://jakarta.apache.org/struts/faqs/database.html

HTH,
    Yann

At 01:31 PM 7/8/03 +0200, you wrote:
>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>
>...
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message