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



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

Answer / 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

More Java J2EE AllOther Interview Questions

Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


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

0 Answers  


Which interface does java.util.hashtable implement?

0 Answers  


Difference b/w >> and >>> ?

1 Answers   Adobe, Infosys,


whats the relation ship between LDAP and JNDI?

1 Answers  






What are the types of interface used in the java collections? : java collections

0 Answers  


What are the interfaces in java collections? : java collections

0 Answers  


Difference between Spring framework and Struts framework?

12 Answers   IBM, L&T, VAM,


waht are architecture of web application?

2 Answers  


what is class/object diagram

3 Answers   Zycus Infotech,


what is jndi?

2 Answers  


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

0 Answers  


Categories