Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

how tomcat container convert jsp page..

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
The only thing that kept the leeches off of me was this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic