Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Deleted JSP page still it the URL shows old JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Deleted JSP page still it the URL shows old JSP page" Watch "Deleted JSP page still it the URL shows old JSP page" New topic
Author

Deleted JSP page still it the URL shows old JSP page

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
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

Joined: Jun 14, 2013
Posts: 101
    
  10
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

Joined: Jul 07, 2012
Posts: 594
thanks
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
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

Joined: Jul 07, 2012
Posts: 594
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
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

Joined: Oct 29, 2001
Posts: 8843
    
    7

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
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

Joined: Oct 29, 2001
Posts: 8843
    
    7

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

Joined: Jul 07, 2012
Posts: 594
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deleted JSP page still it the URL shows old JSP page
 
Similar Threads
Button does not show in applet on newer version of Safari
local variables getting carried across the request
??:How to banish the client cache in JSP
Jsp file not compling
PLS Answer as soon as possible( Have a demo on monday) PLSSsss