On Friday 18 July 2008, Mikolaj Rydzewski wrote:
Edoardo Panfili wrote:
xx.ServerInit is a regular servlet the code is in
init(ServletConfig config) method
Use of ServletContextListener is preferred.
That worked very well, thanks for the hint.
Helpful article:
Yves Glodt ha scritto:
Hello,
this is probably a FAQ, but I failed to find ti anyway...
Where can I declare a static method that I want to be executed on tomcat or
webapp startup?
I use this in web.xml
servlet
descriptionEnv init/description
servlet-nameServiziServerInit/servlet-name
Edoardo Panfili wrote:
xx.ServerInit is a regular servlet the code is in
init(ServletConfig config) method
Use of ServletContextListener is preferred.
To OP: put properties Map in ServletContext and it will be accessible
for both servlets and JSPs (which are the servlets anyway).
--
Mikolaj