Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the life cycle of jsp?



what is the life cycle of jsp?..

Answer / malligontla

THe generated servlet class for a JSP page implements the
HttpJspPage interface of the javax.servlet.jsp package.
HttpJspPage interface extends the JspPage interface which
inturn extends the Servlet interface of the javax.servlet
package. the generated servlet class thus implements all the
methods of the these three interfaces. The JspPage interface
declares only two mehtods - jspInit() and jspDestroy() that
must be implemented by all JSP pages regardless of the
client-server protocol. However the JSP specification has
provided the HttpJspPage interfaec specifically for the JSp
pages serving HTTP requests. This interface declares one
method _jspService().

The jspInit()- The container calls the jspInit() to
initialize te servlet instance.It is called before any other
method, and is called only once for a servlet instance.

The _jspservice()- The container calls the _jspservice() for
each request, passing it the request and the response objects.

The jspDestroy()- The container calls this when it decides
take the instance out of service. It is the last method
called n the servlet instance.

Is This Answer Correct ?    10 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

whats is mean by class.forName() whats the return type of class

3 Answers   SolutionNET,


How can I avoid validating a form before data is entered?

0 Answers  


what are getters and setters in Java with examples?

0 Answers   HCL, Infotech,


How will you pass parameters in RMI? Why do you serialize?

0 Answers  


What is servlet preinitialization

1 Answers   iFlex,


Which textcomponent method is used to set a textcomponent to the read-only state?

0 Answers  


How to deploy Jar, War files in J2EE?

0 Answers   HCL,


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,


what are RemoteObjects?

0 Answers   Wipro,


What is the name of the state, when a thread is executing?

4 Answers  


What are synchronized methods and synchronized statements?

2 Answers   Adobe,


Can I use multiple html form elements with the same name?

0 Answers  


Categories