Get your CodeRanch badge!*
The moose likes JSP and the fly likes Question on Changes made in JSP to convert in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Question on Changes made in JSP to convert in servlet" Watch "Question on Changes made in JSP to convert in servlet" New topic
Author

Question on Changes made in JSP to convert in servlet

Manish Vyas
Greenhorn

Joined: Jul 21, 2004
Posts: 13
Whenever there are somechanges made in JSP page(Jsp page is run first time), JSP engine converts that page to servlet file, otherwise(when no changes made) it directly refers to earlier converted servlet. Hence my question is, How JSP engine knows that there are changes made in JSP page(to reconvert it in new servlet OR refer old converted file).
smitha verghese
Ranch Hand

Joined: Jun 21, 2003
Posts: 42
hi,

JSP engine recompile the jsp in case u change the jsp file with respect to the timestamp in it.else it refers to the older servlet.
hope this heps u
smitha :roll:
Manish Vyas
Greenhorn

Joined: Jul 21, 2004
Posts: 13
Thats okey...But If I make changes in JSPs frequently... Then how JSP engine will come to know that there are changes made in that JSP so that It should recompile that page again, irrespective of the time of timstamp. (Beacause JSP engine will not recompile the page till there is any changes made in that page or till the time of compilation has not occured, right !!!)
smitha verghese
Ranch Hand

Joined: Jun 21, 2003
Posts: 42
Hello I think ur asking the same question again and i have answer it.
It refers to the timestamp of the jsp page when the page is request by the user and acc the page is received.
satish sathineni
Ranch Hand

Joined: May 03, 2004
Posts: 46
Whenever a call goes to the JSP page it will compare with the already compiled JSP (JSP_Servlet)
these changes are maintained with in webserver.

If there exists any changes then it recompiles other wise it doesn't...

There is a setting in server.xml reload set to 'true' or 'false' by default it is set to true value thus it allows frequent recompiling possible its okay with development server but it will have serious performance issue with production servers that is why it is set to false... thus improving the performance....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on Changes made in JSP to convert in servlet
 
Similar Threads
Deployed Servlet and Jsp
WHAT'S PRECOMPILED JSP
changes to generated servlet
JSP turning into Servlet
JSP's Conversion to a Servlet