#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    181
    Rep Power
    13

    get old result from JSP


    When I edit JSP code and save and refresh browser.

    Sometime I got old result from old JSP file.

    Why it not compile code again and use new code that i edit?
    Is any configuration or any problem?
  2. #2
  3. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Location
    Lincoln, NE. USA
    Posts
    2,353
    Rep Power
    117
    It is possible the browser and/or the server are caching your page. You can stop the browser from caching by using
    Code:
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    Put that code at the top of the JSP. This will tell the browser to not cache the page. Hope that helps.

IMN logo majestic logo threadwatch logo seochat tools logo