With all respect to Jagan, it is best if you do not use the Struts DataSource. It has been removed in later versions, so you limit your upgrade options by using it.
The best practice for data sources in Struts applications as in all
Java EE applications is to use the Application Server's utilities for setting up a data source that is registered in the Java Naming and Directory Interface (JNDI) and then using JNDI to look up the data source in your code. For more information on this, see question 8 of this forum's
FAQ.