struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terje Hopsø <tehos...@online.no>
Subject RE: Accessing database in java and jsp?
Date Tue, 08 Jul 2003 19:21:51 GMT
Hi,

As mentioned in the book "Jakarta Struts" from O'Reilly that some
configuration in web.xml has been moved to struts-config.xml I wanted to try
it out. I am testing out a lot of things in Struts since it is new to me and
this is something I am strugling with.

- Terje


-----Original Message-----
From: Micael [mailto:caraunltd@harbornet.com] 
Sent: 8. juli 2003 16:49
To: Struts Users Mailing List
Subject: Re: Accessing database in java and jsp? 


This is probably more of an additional question than a help, but why do you 
want to do something other than create the datasource in your web.xml?

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



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



---------------------------------------------------------------------
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