> 3) In general, I would like to ask what's the better
> pratice to do web application initialization when
> using Struts framework. i.e. init datasource, log4j
> etc... So that I don't need to customize config for
> tomcat, webshpere etc..

I can't claim "better" as I haven't tried anything else, but I use a
ServletContextListener to put Maps into Application scope for use as the
contents of select lists.

I'm not sure if you would have access to struts-config at that point,
though.  I use a .properties file to determine what database to connect to,
and have the other info hard coded in the DAO class, although it can be
overridden in the properties file.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to