There is one tag named as <datasource></datasource> which is available in struts-config.xml.You can configure your database in this tag.