File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Cache QuestionIE5.0 When read and write Xml file in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Cache QuestionIE5.0 When read and write Xml file in servlet" Watch "Cache QuestionIE5.0 When read and write Xml file in servlet" New topic
Author

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

shaonan zhang
Greenhorn

Joined: Dec 12, 2002
Posts: 9
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 ]

study hard, day day up!
 
 
subject: Cache QuestionIE5.0 When read and write Xml file in servlet
 
Threads others viewed
JSP and Java wait help
how to prevent caching in IE 6
After Logout still keeping session
Question on cache control...
disable the back button in webapplication
MyEclipse, The Clear Choice