posted 19 years ago
Howdy -- good question. While you can certainly do it *technically*, I think it's more of a design approach that's the problem--that you would have a dependency on configuring that servlet to load first, and it's kind of an arbitrary way to initialize those things. If your application changes, you'd always have to remember to have one servlet configured to do that, and from an OO standpoint, it might not be the most cohesive to pick one servlet and designate it as The One To Do That Lookup Work. Whereas a listener might make a better design choice...
So, you're right, Sanday, that you could do this. It's a design issue that we were complaining about, but we should have been more clear in explaining WHY we said it like that.
cheers,
Kathy