• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question on Changes made in JSP to convert in servlet

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 am Arthur, King of the Britons. And this is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic