Thanks for replying Frank. Your question : Is the URL you are requesting the result of a GET, and never changing? Answer: No. Just to send a different URL I have appended a variable rand which has different value everytime.This is a part of the code
<form name="form1" method="post"> and within the javascript function (onClick for "Next") I have document.form1.action='./GetOtherSet.do?rand='+parseInt(Math.random()*99999999); document.form1.submit(); Is there any javascript function which would clear the cache? Thanks, Struts Programmer. On 2/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Question: is the URL you are requesting the result of a GET, and never > changing? If so, IE will return a cached result every time after the > first GET because it is somewhat over-aggressive in its caching scheme. > All the headers in the world tend to not help either. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > On Thu, February 16, 2006 12:47 pm, zahid mohammed said: > > 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. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >