Struts is an open source framework useful in building web applications with Java Servlet and JavaServer Pages (JSP) technology, based on the Model-View-Controller (MVC) design paradigm.
Struts is copyrighted software available under a "free-to-use-license" by the Apache Software Foundation. The license appears at the head of every source code file.

The latest Struts version can be downloaded from:

rss feed

Setup MySQL datasource using Struts 1.2.4 and Tomcat 4.1.3


Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Struts 1.2.4
Tomcat 4.1.3
MySQL 3.23 or higher
MySQL Connector/J 3.0.11.

  1. Copy mysql-connector-java-3.0.11-stable-bin.jar to ..\Tomcat 4.1\common\lib

  2. Edit file ..\Tomcat 4.1\webapps\<mywebapp>\WEB-INF\struts-config.xml

          <data-source type="org.apache.commons.dbcp.BasicDataSource">
             <set-property property="driverClassName" value="com.mysql.jdbc.Driver" />
             <set-property property="url" value="jdbc:mysql://localhost/mf" />
             <set-property property="username" value="root" />
             <set-property property="password" value="mysecret" />
             <set-property property="maxActive" value="10" />
             <set-property property="maxWait" value="5000" />
             <set-property property="defaultAutoCommit" value="false" />
             <set-property property="defaultReadOnly" value="false" />