• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the difference between jsp and servlets life cycle??

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between jsp and servlets life cycle??
 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only difference is that there is an additional step with JSPs that compiles the JSP to a servlet before it is instantiated and initialised.
There are a couple of additional methods on the JSPPage interface which is implemented by the servlets generated from JSPs that allow the Web Container to be notified when JSP pages are loaded or unloaded but you don't need to concern yourself with these methods.
At the end of the day JSPs are just a really good way to create servlets without needing to write too much Java code.
HTH
Andy Bowes
[ May 08, 2003: Message edited by: Andy Bowes ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic