Hi, I am new to Struts2 and stumbling immediately.
I want to have an initialization routine in my web app which will connect to a data base etc. at startup time. This routine needs some parameters (e. g. the path of a config file to be read). How can I access such external information? With Servlets I would normally implement a ServletContextListener which would get its information as an init-param from web.xml. But for Struts2 there is no <servlet> spec where I could put it. Writing Struts1 applications I typically utilized a plugin which could read parameters from struts-config.xml. Maybe this is still possible, but the Struts2 plugin mechanism seems to be too powerful (or just overwhelming) for me. What is the preferred way? Thanks Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]