Solved

Refresh changes in JSP scripts working under Tomcat / IIS failed

Posted on 2009-04-02
2
496 Views
Last Modified: 2012-05-06
When I want to refresh the changes I do it in JSP file working under Tomcat / IIS failed what the reason ?

I also restart windows Tomcat service but also not effect
0
Comment
Question by:bworld
2 Comments
 
LVL 27

Accepted Solution

by:
mrcoffee365 earned 500 total points
ID: 24054223
JSP pages are recompiled under Tomcat in the same way, regardless of the front end Web server.

So -- something is preventing your JSP pages from changing in the browser.   You need to post more information -- where is the JSP page, what did you change in the source code, what have you done in the browser to reload the page.

Most common causes for a page in a browser not changing when you "know" that you've changed something:

1) the browser has cached the previous version.  If you don't have the header tags in your JSP page to make the browser request a fresh copy every time, it won't.
2) you didn't change the page.  This is very common.  Sometimes people have copies of pages in different places, and don't realize that the page the browser is accessing is not the one they've edited
3) timestamps -- the timestamp on the generated Java file is later than the date of the edited JSP page.  This mostly doesn't happen, but there are weird sets of steps which can result in this.  Fix by removing all generated java classes and jsp in the work directory, and reload the page.
3) you didn't change the page.  You changed something else, which you think of as part of the page.  
4) you didn't change the page.   You changed a .js or .css files which is <link from the page, and refreshing the JSP page is not resulting in a new request for the .js or .css file.  This can be worked around  by changing the href link for the file.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question