Forums Register Login

JSP Page Translation + Tomcat

+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
tomcat has something called hot swap, this means that there are daemond checking the changes in your app, all time.
+Pie Number of slices to send: Send
okey. thanks a lot
Anderson gave himself the promotion. So I gave myself this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1336 times.
Similar Threads
error displaying jsp
How to do Deployment ?
Simple Tapestry hello world example fails
sendRedirect Problem
How to deploy a simple Web App with no EJB
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:15:11.