Solved

Refresh changes in JSP scripts working under Tomcat / IIS failed

Posted on 2009-04-02
2
499 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

728 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