• Post Reply Bookmark Topic Watch Topic
  • New Topic

how tomcat container convert jsp page..  RSS feed

 
harish goyal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when and how tomcat container convert jsp page
into corresponding servlet java code
and its corresponding class
how it works ?
please anyone help me to understand
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you first time make a request for JSP, it will compile it and convert it in to the Servlet.

For the further request for the same JSP, application server will check whether JSP has changed after Servlet generated or not. If it has changed then it will again compile the Servlet, else execute the existing Servlet.

This process involves IO and it consumes time � a tiny amount but if you aggregate, it becomes significant.

In WebLogic you have option where by you turn off this option, and it will not check for the new version of JSP for each request. And whenever you update any JPS, you just have to restart the server.

I guess by turning of this option you can avoid some amount of delay, but don�t expect drastic performance gain by doing this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!