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
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
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
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= +
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
5 matches
Mail list logo