// Set Cache-Control to no-cache.
response.setHeader("Cache-Control", "no-cache");
// Prevent proxy caching.
response.setHeader("Pragma", "no-cache");
// Set expiration date to a date in the past.
response.setDateHeader("Expires", 946080000000L);
// Force always modified.
response.setHeader("Last-Modified", (new Date()).toString());
PrintWriter out = response.getWriter();
out.println( responseXML );
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛