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 do you create UserTransaction Object? How do you rollback a transaction in a method?

1 Answers   HCL,


What is an Ioc pattern? There are assemblies in .net for establishing this task, Whats the special in Java /j2ee technologies about IOC

2 Answers  


What is a constructor?

4 Answers  


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

1 Answers   HCL,


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

2 Answers  






What are maps interfaces in the java collections? : java collections

0 Answers  


Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers

2 Answers   HCL,


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

1 Answers   IBM,


"Sun Certified Java Programmer" This is one String , we need to print SCJP, write the java code dynamically? pls reply this questions

6 Answers   Photon,


what is mean by hasing and maping in java platform and advantage?

0 Answers   CTS,


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

0 Answers  


Difference b/w >> and >>> ?

1 Answers   Adobe, Infosys,


Categories