File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    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

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sequence of Elements in the JSP Life Cycle
 
Similar Threads
life cycle in different scopes
Threads
callback vs. inline methods
why lifecycle method required ?
what is the difference between jsp and servlets life cycle??