--- Aline Araujo <[EMAIL PROTECTED]> wrote: > Hi all, > > I`m a new struts user and I`m with some doubts. > Could you help me?? > > What`s better? Doing a class that makes the connection to the database > or making the > database configuration in the struts-config.xml file?
I prefer configuring a DataSource in the servlet container and retrieving it via JNDI. This way the app knows nothing about the configuration except for the JNDI name the DataSource is stored under. > > I have six html forms with some properties in common. Is it better to > create an ActionForm > to each form or I can make a base ActionForm class so that all the > others inherit from this > one? I would make each form bean a separate class for maximum flexibility. However, if this is a simple app that isn't likely to change you can get away with using a common base form class. David > > Thanks. > -- > ______________________________________________ > http://www.linuxmail.org/ > Now with e-mail forwarding for only US$5.95/yr > > Powered by Outblaze > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]