This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP Page Translation + Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Page Translation + Tomcat" Watch "JSP Page Translation + Tomcat" New topic
Author

JSP Page Translation + Tomcat

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
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 ?


Jigar Naik


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Emmanuel Garcia
Greenhorn

Joined: Feb 24, 2009
Posts: 12
tomcat has something called hot swap, this means that there are daemond checking the changes in your app, all time.
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
okey. thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Page Translation + Tomcat
 
Similar Threads
sendRedirect Problem
How to do Deployment ?
Simple Tapestry hello world example fails
error displaying jsp
How to deploy a simple Web App with no EJB