Configure the SQL server data source in the Struts Framework

Source: Internet
Author: User

<Data-sources>

<Data-source>

<Set-Property = "key" value = "value =" wiley_data_source "/>

// The index key of the datasource instance bound to the servletcontext. If this parameter is not set, the default value is action. data_source_key,

// If the applicationProgramIf there is more than one datasource, you must set the key value.

<Set-Property = "driverclass" value = "org. gjt. Mm. MySQL. Driver"/>

// The JDBC driver class used by driverclass (required), for example, Com. Microsoft. JDBC. sqlserver. sqlserverdriver

<Set-Property = "url" value = "JDBC: mysql: // localhost/wileyusers"/>

// The jdbc url used by the URL (required), for example, JDBC: Microsoft: sqlserver: // x000088: 1433

<Set-Property = "maxcount" value = "5"/>

// The maximum number of connections simultaneously opened by maxcount. The default value is 2 (optional)

<Set-Property = "mincount" value = "1"/>

// The minimum number of connections opened at the same time in mincount. The default value is 1 (optional)

<Set-Property = "user" value = "sa"/>

// Username (required) used to connect the user to the database)

<Set-Property = "password" value = "yourpassword"/>

// Password (required) password used to connect to the database)

</Data-source>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.