This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: Sequence of Page loading
 
Similar Threads
serialization and deserialization support in SOAP
isThreadSafe
stay with same page after submiting form
Main
EntityManager in Servlets Doubt