• 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

JSP Page Translation + Tomcat

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I have created one Web Application HelloWorld

which contains one WEB-INF folder and one test.jsp file which prints Hello World Message.

HelloWorld/WEB-INF
HelloWorld/test.jsp

Now i have deployed my web application in tomcat and started the server

at first request server translate the JSP to Servlet initializes the servlet.

now I removed the message Hello World from test.jsp without restarting the server.

and again refreshes the page at browser.

My browaser displays me the updated test.jsp

how does browser identify that jsp has been modified and it has to retranslate the jsp page ?
Is this behaviour garentted ?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's based on the file modification date. This behavior is server-specific; for Tomcat, check out the documentation of the parameters of the JspServlet in TOMCAT_HOME/conf/web.xml.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
tomcat has something called hot swap, this means that there are daemond checking the changes in your app, all time.
 
Jigar Naik
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
okey. thanks a lot
 
Does this tiny ad smell okay to you?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic