• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP's Conversion to a Servlet  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that JSP pages get converted to a Servlet. And I know that JSP pages are delivered very fast. My question is do JSP pages get converted to Servlets every single time they are called, do they get cached when the server starts or changes are made? How do Servlet Containers handle the conversion process?
A link concerning this information would be good. All I can find is the simple fact that JSP pages get converted to Servlets.
 
Roo Schein
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They get compiled only once, the first time they are accessed. Each time after that the container compares the timestamp to see if it has been updated. If not, it serves the page without compiling. There's some info here:
http://developer.java.sun.com/developer/technicalArticles/javaserverpages/servlets_jsp/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!