I tried to make a Connection between MS access and Struts but I
encountered some errors :
javax.servlet.ServletException: Servlet.init() for servlet action
threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:946)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:655)
...
and
java.lang.NoClassDefFoundError:
org/apache/struts/legacy/GenericDataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:123)
...
Struts-config.xml
<data-source>
<set-property property="driverClass"
value="sun.jdbc.odbc.JdbcOdbcDriver" />
<set-property property="url"
value="jdbc:odbc:myconnection://localhost/actions/login.do" />
<set-property property="userName" value="" />
<set-property property="password" value="" />
</data-source>
it seems GenericDataSource has deprecated.