Attributes and Parameters in Servlets

   Attributes  Parameters  Types 1. Application/context 2. Request 3. Session  1. Application/context init parameters 2. Request parameters 3. Servlet init parameters  Method to set  setAttribute(String name, Object value)  You CANNOT set Application and Servlet init parameters—they’re set in the DD,  Return type  Object  String  Method to get  getAttribute(String name)  return type of the method is Object   getInitParameter(String name) ...