Y does Container give referances of ServletConfig to name/value init parameters rather than ServletConfig object getting the refernaces from name/value init parameters .
Page number 152 in Head First SCWCD book.
posted 11 years ago
Hi, I think that's because it is the container that actually read the deployment descriptor, not the servlet. Then the container instantiate the servlet and pass it its configuration information. The container passes this information through name/value pairs.