File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP files translation into servlets

 
Guna sekar
Ranch Hand
Posts: 32
  • 0
  • 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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the update.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic