This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP files translation into servlets

 
Guna sekar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Everytime a .jsp file is accessed it will be translated into servlet. suppose if i access the .jsp 10 times, how many times it will be translated(i think 1 time it will be translated to servlet class). Also if i change the content in .jsp how it will know whether the file is changed and needs to be translated to servlet?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The container will usually look at the timestamp of the file. Unless you make some changes and save the file, the container won't retranslate it.
 
Trivikram Kamat
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correctly told by Christophe Verré, it depends on the container.
For example, Tomcat won't retranslate the JSP file till it's modified.
Tomcat7 doesn't retranslate the JSP file even after restart - if JSP file is not modified.
 
Guna sekar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the update.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic