When does a container initialize multiple jsp / servlet objects?



When does a container initialize multiple jsp / servlet objects?..

Answer / Praveen Kumar Soni

A web container initializes multiple JSP/Servlet objects under the following circumstances: 1) When a ServletContext is created or reloaded (e.g., after deploying a new version of the application). 2) When a ServletContext attribute is accessed for the first time, or when it expires. 3) During servlet initialization-param initialization. 4) When a JSP page is requested and the associated servlet object does not exist.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

How to access java variable in jsp?

1 Answers  


What is difference between jspwriter and servlet printwriter?

1 Answers  


What are the different life-cycle methods?

1 Answers  


what will happen if we disable cookies in the web page?

7 Answers  


Tell us about the stages (phases) of the jsp life cycle.

1 Answers  


Explain the steps for creating custom tags in jsp?

1 Answers  


What is the difference between servletcontext and pagecontext?

1 Answers  


What are scripting elements?

1 Answers  


how can i get a scjp certification??

3 Answers  


What is _jspservice method?

1 Answers  


Explain the various scope values for tag.

1 Answers  


Explain the jsp implicit objects?

1 Answers  


Categories