Hello All,
I have asked this question before in several forums but could'nt get the
solution for it.
We have a struts application and the server is Tomcat 5.5. I display an
Arraylist (set in request) on the first page using Logic:Iterate tag. If the
user clicks next, another set is selected and the arraylist is set in the
request. In Mozilla Firefox, I am able to view the new set of elements, but
in IE6 ServicePack2, it shows me the old set of elements even after clicking
next. Its not working even after clearing the cache.
 I have placed <%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader("Expires",-1); //prevents caching
response.addHeader("Cache-Control","no-store"); //HTTP 1.1
%> on the top of the jsp and also
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires"
CONTENT="-1"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> in the
head.
I have also placed <controller nocache="true"></controller> in the
struts-config.xml........Even after doing all these its not working in IE
6.0. But everything is fine in Firefox.

One thing to note is when I used "System.out.println" in a scriptlet in jsp,
it shows me the right set of elements in the console when next is clicked.
But when I used "out.println" its showing the old set of elements in the
jsp.
Please HELP!!!
Thanx,
Struts Programmer.

Reply via email to