RE: Servlet init() equivalent in Struts 1.3.8

2011-12-15 Thread Givler, Eric
-Original Message- From: Anjib Mulepati [mailto:anji...@hotmail.com] Sent: Friday, November 18, 2011 2:55 PM To: Struts Users Mailing List Subject: Servlet init() equivalent in Struts 1.3.8 Hi All, I am trying to put some database configuration code in the Struts application. This is the c

Re: Servlet init() equivalent in Struts 1.3.8

2011-11-19 Thread Johannes Geppert
You can use your own Struts2 FilterDispatcher to solve this. Like this Example which is loading Configs via an SpringDAO and put it into the Application Scope: public class FilterDispatcher extends StrutsPrepareAndExecuteFilter { private static final Log log = LogFactory.getLog(FilterDispatcher

Servlet init() equivalent in Struts 1.3.8

2011-11-18 Thread Anjib Mulepati
Hi All, I am trying to put some database configuration code in the Struts application. This is the code for loading context parameter, configure database parameter and locate the service. Usually we put this code in init() method of servlet but I am confuse where I can put this piece of code