Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP not reshreshing  RSS feed

 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the problem. A JSP is not being refreshed. I am running tomcat on localhoast to test an app before deploying. The browser continues to pull up the original page. I have deleted my temp internet files (many times) I have re-deployed the war file (many times) I have even used multiple browsers (IE and Netscape)
If I view source and compare it with the file in the projects folder created by my war file in tomcat´┐Żs webapps directory then they are definitely different. (with the source from the browser being the original and the extracted file in the webapps being the changed). I am so stuck. What is possibly going on with this?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat,
There are two scenarios I can think of:
1) Are you using JSP includes? If so, changes to the included JSPs are not registered until you make a change to the parent JSP.
2) Something is caching the page. Try pressing shift and refresh in your browser.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can also happen if the timestamps on the JSP pages are off.
Try deleting the generated servlet code and class files found under TOMCAT_HOME/work.

This will force Tomcat to recompile your JSP.
 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That last one was the answer.
Thanks...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!