Does anyone know the difference between the following two methods? ServletContext.getInitParameter() ServletContext.getAttribute() I understand that the first one gets the initial parameters from the deployment descriptor, whereas the second gets the ones set programmatically using the setter method setAttribute(). Is that it or is there something more that I missed? Thanks, Francois
posted 16 years ago
You are right. initParameter is from servlet configuration (deployment descriptor ) & attribute is the object which is shared in the application scope.