2008/7/24 OTA_DZ <[EMAIL PROTECTED]>: > > Hi, > I'm new in Struts 2 and I want to do some configuration (log4j, DataBase,…) > in the loading of my application. In Struts 1 I use an implementation of > PlugIn and do these configurations in init() method. Could you please help > me?
You can use a ServletContextListener: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContextListener.html Obviously you have to configure it in web.xml: http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-servletcontextlistener.html HTH Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]