JSP page is not getting refreshed after updating

后端 未结 9 1955
暗喜
暗喜 2020-12-21 13:33

JSP page is not getting refreshed after updating. I tried deleting browser cache, but id didn\'t have any effect. Any suggestion is of great help. I am using Tomcat server a

相关标签:
9条回答
  • 2020-12-21 14:07

    Try deleting all the contents in the jsp and then refresh. Then copy your updated code back once empty jsp shows.

    0 讨论(0)
  • Eclipse/MyEclipse/Netbeans - Just DELETE your old SERVER. And then again create NEW SERVER.

    0 讨论(0)
  • 2020-12-21 14:11

    You can put this in your jsp page:

    <%
    response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", 0);
    //prevents caching at the proxy server
    %>
    

    It will not cache your page

    0 讨论(0)
  • 2020-12-21 14:16

    You checked the configuration of Tomcat?

    There's a setting "reloading", which should be set to "true" to allow Tomcat to check for changes to JSP files.

    See: http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html#Configuration

    EDIT: Of course, Eclipse may not be deploying your updated JSP file to the Tomcat folder?

    0 讨论(0)
  • 2020-12-21 14:21

    i have a problem like this too. I have searched on google and i find a solutions then solved. I will tell you how can you solved step by step on Eclipse IDE.

    • 1 Open ECLIPSE IDE
    • 2 Window -> Show View -> Click Servers
    • 3 Double Click your server. (Tomcat, WildFly etc.)
    • 4 Click publishing on the right side of the screen
    • 5 You will see three radio button. Click Automatically publish after a build. That's it.
    • But if you are using Wildfly after
      • Open Application Reload Behavior. (Below Publishing)
      • Disable Use default patter
      • Change \.jar$ to \.jar$|\.class$
      • Save project (Ctrl + S )
      • Restart IDE.

    Your changes will appear on the screen now. I hope it has helped.

    0 讨论(0)
  • 2020-12-21 14:21

    Try to delete the tomcat's work folder contents and then redeploy the application. This worked for me.

    0 讨论(0)
提交回复
热议问题