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?

Answer Posted / sivasubramanian.k

It is similar to the lifecycle of a servlet only,
They are:
jsp:init()
jsp:service()
jsp:destroy()
The init() method initializes the servlet within jsp and
must be called before the servlet can service any requests.
In the entire life of a servlet, the init() method is
called only once.

After initialization, the servlet can service client-
requests. Each request is serviced in its own separate
thread. The container calls the service() method of the
servlet for every request. The service() method determines
the kind of request being made and dispatches it to an
appropriate method to handle the request. The developer of
the servlet must provide an implementation for these
methods. If a request for a method that is not implemented
by the servlet is made, the method of the parent class is
called, typically resulting in an error being returned to
the requester
.
Finally, the container calls the destroy() method which
takes the servlet out of service. The destroy() method like
init() is called only once in the lifecycle of a Servlet.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out benefits of object oriented programming language?

829


Difference between this() and super() in java ?

1020


What is an example of a keyword?

1002


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1635


What is application system?

885


What is == and === in javascript?

987


State the difference between creating string as new () and literal.

1014


What are different types of states exist for a thread?

959


What are disadvantages of java?

955


What are the important features of Java 9 release?

948


What is static class

1049


What are the main uses of this keyword?

993


What is difference between next () and nextline () in java?

937


Can inner class extend any class?

1007


How to make a write-only class in java?

1009