You can't. Attributes are a feature of the servlet context, not the servlet configuration. If you have a ServletConfig object you can get a ServletContext object through the getServletContext method.
This interface is implemented by services in order to pass configuration information to a servlet when it is first loaded. A service writer implementing this interface must write methods for the servlet to use to get its initialization parameters and the context in which it is running.
Sun Certified Java Programmer<br />Sun Certified Web Component Developer <br />National Stock Exchange Certification in Financial Market
I do some of my very best work in water. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking