Explain JSP life cycle?

Answers were Sorted based on User's Feedback



Explain JSP life cycle?..

Answer / qim2010

• Pre-translated: Before the JSP file has been translated
and compiled into the Servlet.
• Translated: The JSP file has been translated and compiled
as a Servlet.
• Initialized: Prior to handling the requests in the service
method the container calls the jspInit() to initialize the
Servlet. Called only once per Servlet instance.
• Servicing: Services the client requests. Container calls
the _jspService() method for each request.
• Out of service: The Servlet instance is out of service.
The container calls the jspDestroy() method.

Is This Answer Correct ?    4 Yes 0 No

Explain JSP life cycle?..

Answer / suresh s.a.

Life Cycle for JSP is

1.jspinit(),
2._jspService() and
3.jspdestroy().

jspService() method cant be override so why there is an
underscore before the method name.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Java J2EE AllOther Interview Questions

How many controlers are there in spring? Plz send me ans

1 Answers   HCL,


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

0 Answers  


How do you debug your java program?

2 Answers   HCL, Inforica,


what is java virtual machine

4 Answers  


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

0 Answers  






my interviewer asked me what technical specification you used how to answer that question

0 Answers  


httt method

2 Answers   HCL,


How to implement or use the singleton class in java?

3 Answers  


What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys 2 In which way does a Primitive data type is passed ? Sun- Microsystems 4 what is the use of declaring constructor as private? Sai- Softech 5 what is difference between global methods and local methods? 1 What is meant by class loader and how many types are there? Apple 1 what is meaning of JIT? 4 What is an abstract class? Wipro 5 what is filters and its use? Virtusa 2 why is multiple inheritance not allowed in java? Elementus-Technologies 7 Differences between jdk 1.4 and 1.5 Wipro 4 is JVM platform dependent or independent..? IBM 6 what is main purpose of abstract class? 5 what is difference between colection and collections? Tech-Mahindra 11 What error occurs if a try-catch-finally statement sequence does not have a catch clause? 2 Explain the difference between scrollbar and scrollpane? 1 Explain the differences between public, private, protected and static? 4 Explain the difference between getAppletInfo and getParameterInfo? 1 Is Cegonsoft Pvt.Ltd. a good Institute? 4 Why only one Class is public in one file? Explain in details. Thanks in Advance. 11 Which method will get invoked first in a stand alone application?

0 Answers  


what is the difference between banking and insurance domain?

2 Answers  


What do you understand by synchronization? Why is it important?

0 Answers  


What are the types of the main implementing classes in the map interfaces? : java collections

0 Answers  


Categories