|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > get old result from JSP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|