File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP files translation into servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP files translation into servlets" Watch "JSP files translation into servlets" New topic
Author

JSP files translation into servlets

Guna sekar
Ranch Hand

Joined: May 18, 2010
Posts: 32
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.


[My Blog]
All roads lead to JavaRanch
Trivikram Kamat
Ranch Hand

Joined: Sep 26, 2010
Posts: 155
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.


OCPJP6
Guna sekar
Ranch Hand

Joined: May 18, 2010
Posts: 32
Thanks for the update.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP files translation into servlets