• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deleted JSP page still it the URL shows old JSP page

 
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 121
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks
 
Monica Shiralkar
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic