• Post Reply Bookmark Topic Watch Topic
  • New Topic

does jsp has only one instance  RSS feed

 
Samanthi perera
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?
 
Sharad Jadhav
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!