• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sequence of Elements in the JSP Life Cycle

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic