non-default init-params and default ActionServlet

2004-02-20 Thread exnihilo
hi, I have 2 init-params that I need to do pass into my struts app (that are only used in a listener that gets called upon webapp startup and shutdown). I did the obvious and included them in the web.xml, but it seems that the default ActionServlet does not pick up any other init-params than the

Re: non-default init-params and default ActionServlet

2004-02-20 Thread Hubert Rabago
Where do you need the values? There are a lot of options, including using servlet context variables and a simple Struts plugin. --- exnihilo [EMAIL PROTECTED] wrote: hi, I have 2 init-params that I need to do pass into my struts app (that are only used in a listener that gets called upon

Re: non-default init-params and default ActionServlet

2004-02-20 Thread exnihilo
I need the variables in a ServletContextListener that gets invoked once on startup and once on shutdown of the application, and don't need them anywhere else. I used to have a subclassed ActionServlet, where I did initialization and shutdown using a couple of init-params in the web.xml, but

Re: non-default init-params and default ActionServlet

2004-02-20 Thread Hubert Rabago
I might be missing something here, but why not get it inside the servlet context initialized handler method? public void contextInitialized(ServletContextEvent event) { System.out.println([contextInitialized] inside contextInitialized()); System.out.println( +- context= +

Re: non-default init-params and default ActionServlet

2004-02-20 Thread exnihilo
That is exactly what I'm trying to do, but when I try getInitParameterNames, I get an empty enumeration, and if I read the javadocs correctly, it is because if I use a default ActionServlet, then only the init-params mentioned in the javadocs are available, so my custom init-params are not