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

Should we create system software ( e.g operating system ) in java ?

0 Answers  


what is the diffrence between insurance and telecom domain?

1 Answers  


where is JNDI being used in java platform?

2 Answers  


What is the use of log4j and how to make use of that in a application?

2 Answers  


i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com

1 Answers  






How do you create UserTransaction Object? How do you rollback a transaction in a method?

1 Answers   HCL,


waht are architecture of web application?

2 Answers  


what are callback methods?

3 Answers   iFlex,


what is jndi?

2 Answers  


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

1 Answers   Cap Gemini,


Which is the better framework for web applications, struts or spring, and why?

1 Answers   IBM, TATA,


whats the relation ship between LDAP and JNDI?

1 Answers  


Categories