• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cache QuestionIE5.0 When read and write Xml file in servlet

 
shaonan zhang
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read and write a xml file by jdom in servlet.In client ,Client access xml data binding the element of html in xml file.but when I delete and add the data to xml file by servlet.Client cannot right now see the data that I delete and add in servlet. and only after client refresh the IE , could see instant data .I suspect the reason is IE'cache,
therefore, I add those code in my jsp
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
%>
<html>
<head>
<title>&#</title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Expires" content="Tue, 01 Jan 2000 12:12:12 GMT">
<meta http-equiv="Pragma" content="no-cache">
</head>
But I have still failed. How to do? please help me.
[ January 24, 2003: Message edited by: shaonan zhang ]
[ January 24, 2003: Message edited by: shaonan zhang ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!