struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bar³omiej Paw³owski <bpawlow...@supermedia.pl>
Subject Re: how to define a datasource in struts?
Date Tue, 21 Aug 2001 13:48:07 GMT
Hi,
You can do it like that:
  <data-sources>
    <data-source>
      <set-property property="autoCommit"
                     value="false"/>
      <set-property property="description"
                     value="MySQL"/>
      <set-property property="driverClass"
                     value="org.gjt.mm.mysql.Driver"/>
      <set-property property="maxCount"
                     value="4"/>
      <set-property property="minCount"
                     value="2"/>
      <set-property property="password"
                     value="pass"/>
      <set-property property="url"

value="jdbc:mysql://localhost:3306/test"/>
      <set-property property="user"
                     value="servlet"/>
    </data-source>
  </data-sources>

Bartek
Poland

Satyan Nair wrote:

> Hi everyone,
> i m new to struts.. if anyone can tell me where to find the archive of the
> mailing lists then the problems already discussed won't come again and
> again...
> anyway i would like to know how to define datasource in struts... i tried
> using the example given with struts... but i must be missing something to be
> configured.. i configured the struts-config.xml file... for defining the
> datasource... but it gives me ActionMapping errors...
>
> take care everyone


Mime
View raw message