File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deleted JSP page still it the URL shows old JSP page

 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing strange problem. The change in my JSP page was not getting displayed.To check it I deleted the resource(JSP page).Still is showing old JSP page despite deleting it. I even deleted tomcat again unzipped new one then deployed.But still whatever I do it is showing old JSP page which I have already even deleted.
thanks
 
Maxim Karvonen
Ranch Hand
Posts: 120
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most probably, page is cached in a browser. You should either clear a cache (somewhere in a settings) or press "Ctrl-F5" to reload that page from a server. Also you may use "web-developer console" or some other tool to see if request actually comes to a server (or use another tool like wget to perform a request).

If it helps, you may be interested in googling "cache control headers" to control/prevent page caching.
 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the issue is still occuring. I cleared the cache and all browser history as you had said but issue still persists. I was calling this JSP from a struts.xml configuration file.I even deleted the config file now I should not see any resource but but it is still showing old ones.I do not know if this should be moved to struts forum now or it is java in general problem. Please advice. Whatever I do it does not go.
 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was first posting this in Java in General forum as thought this is general thing not specific to JSP then posted in JSP but now whatever I do it does not got. I tried the following steps:

- Restarted Eclipse- Did not work.
- Restarted Computer- Did not work
- Took backup then Renamed the project as another name.Now imported the old project in workspace. -Did not work.

Whatever I do it still shows the old page.Please advice.
thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Monica. Shiralkar wrote:I was first posting this in Java in General forum as thought this is general thing not specific to JSP

How on earth could this possibly be related to core Java?

Whatever I do it still shows the old page.Please advice.

If it continues to show the old page after all that then all I can surmise is that the old page is still there and you are not replacing it like you think you are.
 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am so surprised that I even deleted the struts.xml to check. But on calling action it still shows the JSP page.Only option which I did not try is to create a new project and copy paste all files but thats a weird solution.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you running this web application? It is possible to delete a file from a build directory or IDE project and still have it deployed on the server.
 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running from Eclipse. I forgot to add I also tried deleting the server adding it .It did not work. I even unzipped tomcat again and still it did not work.I know it sounds untrue but I cannot believe that even after deleting struts.xml it is showing JSP page on calling action. I think only option left for me is create a fresh project and start adding the files and then rename it to original one. Has anyone heard such an issue occurring. Had anyone told me about this issue I wouldnt have believed it but now I cant believe what I am seeing. A struts app running even after deleting its struts.xml
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Monica. Shiralkar wrote:I am running from Eclipse. I forgot to add I also tried deleting the server adding it


So you are not starting Tomcat separately? Are you sure Eclipse does not have its own copy of Tomcat? Are you using Eclipse WTP?
I follow the Tomcat Application Developer's Guide when I build a web application. This would involve running Tomcat separately. I find this process easier to replicate in production environments. That way, when something goes wrong in production, I can more easily replicate it on my test systems.
 
Monica Shiralkar
Ranch Hand
Posts: 825
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This would involve running Tomcat separately


Thanks a lot. Although my issue did not resolve until I created a new project and copied all files but I have gained something important from this post, that it is better to start Tomcat separately from Eclipse.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic