Solved

Refresh changes in JSP scripts working under Tomcat / IIS failed

Posted on 2009-04-02
2
494 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Market Place not working in Eclipse Luna 2 112
WEB Service vs ??? 7 117
I get error: useBean: Duplicate bean name: {0} 1 135
iterator/ListIterator approach 17 26
Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...))The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
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.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

770 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