jim, in 1.2 there is no GenericDataSource. (because legacy.jar will be removed)
you can still use a DataSource with BasicDataSource. after 2.0 it will also be moved away (see the faq) with the datasource, you write JDBC in an action-class. do you really want it ? :-) in my case i use (allways) a delegate-class, which handles OJB (for storeing und getting objects from a database) or EJB. but action only "speaks" with interface of my delegate see also http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html for delegate and other patterns inclusive of DAO. cheers, -----Original Message----- From: Jim Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 7:29 PM To: Struts Users Mailing List Subject: Re: REPOST: newbie datasource config problems Matthias, Thanks very much for responding! It seems there's a misunderstanding on my side. I guess I'll have to rethink it. From what you say, there isn't any reason to include a <data-sources> element in struts-config since the persistence layer should be invisible to Struts. Am I understanding you correctly? On Jan 28, 2004, at 12:26 PM, Matthias Wessendorf wrote: > hi jim! > > did you add struts-legacy.jar in WEB-INF/lib ? > > but in 1.2 its not more supported (GenericDataSource) > > look here: http://jakarta.apache.org/struts/faqs/database.html > (The Struts DataSource Manager) > > then you need pool.jar and > dbcp.jar > > from the corresponding commons-projects > - http://jakarta.apache.org/commons/pool/ > - http://jakarta.apache.org/commons/dbcp/ > > > greetings > > matthias > > -----Original Message----- > From: Jim Anderson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 28, 2004 6:14 PM > To: Struts Users Mailing List > Subject: REPOST: newbie datasource config problems > > > (The original msg didn't seem to make it to the list.) > > I'm trying to configure my Struts 1.1 app (Tomcat 4) for MySQL access > and getting nothing but grief. Currently, I'm showing the following > error in the log file: > > java.lang.NoClassDefFoundError: > org/apache/struts/legacy/GenericDataSource > > Could someone please send me samples of what web.xml and > struts-config.xml should look like when properly configured? > > Thanks very much, > > jim > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > jim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]