What is the servletcontext listener and what is
JspContext and page context pls tell in simple words.

Answer Posted / sreekumar

ServletContextListener is an interface which contains two
methods to be implemented namely contextInitialized and
contextDestroyed which will be called when context is
initialized and destroyed respectively. Both the methods
accepts ServletContextEvent as argument

PageContext is an implicit object which encapsulates other
implicit objects. ie. using pagecontext reference we can get
references to all other implicit objects and attributes from
all scopes

JspContext serves as the base class for the PageContext class

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of the set interfaces in the java collections? : java collections

528


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1576


please mail me the interview question based on java/j2ee

1522


What is the Spring2.5 MVC Navigation flow?

5355


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1669






What are the differences between the java collection and the java list? : java collections

600


What are the different types of collections views being provided by the map interface? : java collections

603


What is the enumerator of the java collection framework? : java collections

555


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2528


What is the difference between comparable and comparator in java.util pkg?

579


What are the types of java collections? : java collections

533


What are maps interfaces in the java collections? : java collections

563


What is an algorithm in java collection framework? : java collections

564


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

546


What is iterator in the java collections framework? : java collections

529