MCQs Test!! VB Basic Test !! Essentials of VB !! Creating User Services !! function !! Anatomy !! GK March-2019 !! DATA TYPES IN JAVA !! Classes ,Constructor ,Methods,Inheritance !! Ecology-I !! Biology 2019 !! Gk april 2019 !! Biology (living world) !! Plant anatomy !! CELL STRUCTURES AND FUNCTION !! General biology !! Human physiology !! Data structure !! Ecology-II !! GK TEST !! Reproduction in plants !! Human reproduction !! The ABC of C !! Operating system set1 !! Operating system set2 !! Gk and current affairs !! Animal kingdom !! Number system !! Animal kingdom-II !! Gk TEST-III !! Number series !! Microorganisms !! Interview question in c !! Time and Work !! Percentage !! General history !! Average !! Cells !! Locomotion and Movement !! paging !! Bacteriology !! Page replacement policy !! Secondary memory and Disk scheduling !! Introduction of Nervous System and neurons !! Plant harmones !! Transport and Mineral Nutrition in Plants !! Neurotransmitters !! Modern Indian History !! Photosynthesis in Plants !! Modern Indian History-II !! Plant respiration !! Environment & Biodiversity !! Environment & Biodiversity - II !! Algae, Bryophytes, Pteridophytes !! Area !! Cricket !! Days of the Year (India and the World) !! Plant Pathology - I !! Indian Transport System !! Plant Pathology - II !! Aptitude !! Biology !! Botany !! C language !! Computer Science !! Core Java !! Gate !! GK !! Mysql !! Operating system !! Physics !! VB-Visual Basic !! Zoology

Java Servlet Programing Laungage

Java Servlet Projects

Servlet Project 3

Java Servlet :Commonly used methods of ServletContext interface
Previous Home Next
  1. getInitParameter() is used to obtain the value of an initialization parameter.
    Syntax
    		public String getInitParameter(String pName);
    		
  2. getInitParameterNames() returns an enumeration for the name of all initialization parameters stored in ServletContext object.
    Syntax
    		public Enemeration getInitParameterNames();
    		
  3. setAttribute() is used to store an attribute in application scope.
    Syntax
    		public void setAttribute(String name,Object value);
    		
  4. getAttribute() is used to obtain the value of an attribute.
    Syntax
    		public Object getAttribute(String name);
    		
  5. getAttributeNames() returns an enumeration for all the attributes saved in application scope.
    Syntax
    		public Enumeration getAttributeNames();
    		
  6. removeAttribute() is used to remove an attribute from the application scope.
    Syntax
    		public boolean removeAttribute(String name);
    		
  7. getContext() is used to obtain the reference of ServletContext object of the specify application.
    Syntax
    		public ServletContext getContext(String appName);
    		
  8. getRequestDispatcher() is used to obtain a requestDispatchet object.
    Syntax
    		public RequestDispatcher
    		getRequestDispatcher(String url of Resource);
    		
  9. getRealPath() is used to find out actual path of resource an a server.
    Syntax
    		
    		public String getRealPath(String url);
    		
    		
Previous Home Next