• Post Reply Bookmark Topic Watch Topic
  • New Topic

does jsp has only one instance  RSS feed

 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is the jsp lifecycle

1)Translate to java file
2)Compile java file
3)instantiate java class
4)Jsp init
5)Service method runs
6)Destroy method runs

in this lifecycle the first 3 phases happens only first request.
that means there is only one instance of any jsp file in any application.Because it instantiate only first time/
Is it?
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right!
 
Do you pee on your compost? Does this tiny ad?
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!