I'm a little confused about how to best initialize some application scope
information in a Struts application. For example, I need to configure a
handful of IP addresses which my beans need to talk to. I might do
something like this in a configuration file:
marketData=127.0.0.1
My question is where to put this information. If I were writing a normal
servlet application I would probably define this in the init
operation. One option I've considered is to subclass from ActionServlet
and add my own custom initialization tags which I can use in my web.xml
file. What I'm trying to figure out is how to best initialize a set of
application scope variables for my struts application. Any suggestions
would be appreciated.
Thanks.