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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sequence of Elements in the JSP Life Cycle" Watch "Sequence of Elements in the JSP Life Cycle" New topic
Author

Sequence of Elements in the JSP Life Cycle

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
How do I place several elements such as
Create Instance
Page translation
JSP compilation
Load class

in the JSP life cycle

Call jspInit
Call _jspService
Call jspDestroy
?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Your code never calls jspInit and jspDestroy - these methods are called by the servlet container only once, when the servlet is created and when it is destroyed.
The servlet container will call _jspService for every request.
SO:
Page Translation -> JSP compilation -> Load class -> Create Instance -> jspInit called
(any number of _jspService calls)
-> jspDestroy (at the container's discretion)
Bill
 
Consider Paul's rocket mass heater.
 
subject: Sequence of Elements in the JSP Life Cycle