Thank your. It works now :)
Best Regards,


----- Message d'origine ----
De : Antonio Petrelli <[EMAIL PROTECTED]>
À : Struts Users Mailing List <user@struts.apache.org>
Envoyé le : Jeudi, 24 Juillet 2008, 9h20mn 54s
Objet : Re: Configuration in the loading of the application

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]


      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

Reply via email to