aspose file tools*
The moose likes JSP and the fly likes Sequence of Page loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Sequence of Page loading" Watch "Sequence of Page loading" New topic
Author

Sequence of Page loading

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231
What are the sequences in which the JSP page is loaded? i.e. init(),load(),compilation, destroy?
Jason Brawner
Ranch Hand

Joined: Dec 19, 2001
Posts: 66
The JSP lifecycle goes something like this...
1. Translated - to a servlet
2. Compiled - servlet is compiled
3. Loaded - loaded by a class loader
4. Instantiated - instance is created
5. Initialized - init() method invoked
6. Each user request is sent through the jspService() method
7. destroy() is called before being taken out of service.
Hope this helps,
JEB


Jason E. Brawner<br />Sun Certified Java Programmer<br />Sun Certified Web Component Developer
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Sequence of Page loading
 
Similar Threads
Main
isThreadSafe
serialization and deserialization support in SOAP
stay with same page after submiting form
EntityManager in Servlets Doubt