Solved

Refresh changes in JSP scripts working under Tomcat / IIS failed

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

Accepted Solution

by:
mrcoffee365 earned 500 total points
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

      Install BugTracker on Windows 2008 server Step 1:  Install windows 2008 server 32 bit OS and configure IIS. Step 2:  Install SQL server ( SQL server 2005 or SQL server 2005 Express edition. The installer for 2008  version isn’t very f…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now