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

what is the difference between checked and unchecked Exceptions?

4 Answers   CTS,


can u draw class/object diagram for ATM

0 Answers   HCL, Zycus Infotech,


What are the queues in the java collection framework? : java collections

0 Answers  


what is java virtual machine

4 Answers  


what is the difference between through and throws?

2 Answers   HCL,






Which interface does java.util.hashtable implement?

0 Answers  


When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?

1 Answers   Cap Gemini,


What is IOC in spring?

10 Answers   Centris,


what is acl(access control list)?

1 Answers   Athena, HCL,


whats the relation ship between LDAP and JNDI?

1 Answers  


Write a interface "CarOperations" with the following methods void turnOnEngin() void turnOffEngin() void turnOnLigths() void turnOffLights() void turnLeft() void turnRight() void accelerate() void deaccelerate() void putBreaks() void releaseBreaks()

1 Answers  


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

0 Answers  


Categories