struts-config.xml中数据源配置SqlServer2000

<struts-config>
  <data-sources>
    <data-source key="dataSource" type="org.apache.commons.dbcp.BasicDataSource">
      <set-property property="driverClassName" value="net.sourceforge.jtds.jdbc.Driver" />
      <set-property property="url" value="jdbc:jtds:sqlserver://localhost:1433/NorthWind" />
      <set-property property="username" value="sa" />
      <set-property property="password" value=""/>
    </data-source>
  </data-sources>
  <action-mappings>
    <action path="/untitled1Action" type="untitled57.Untitled1Action" />
  </action-mappings>
  <message-resources parameter="ApplicationResources" />
</struts-config>

你可能感兴趣的:(xml,struts)