Access a Servlet config from a non-Servlet
Author and all-around good cowpoke
posted 14 years ago
Sure, a ServletConfig is an object like any other so you could pass it to the Bean constructor so the bean could get some variables. However, remember that it is the sevlet engine's responsibility to manage the ServletConfig so don't try to keep a copy or otherwise manipulate it.