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.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads