• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Again Cache Problem!!!

 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i have created online exam which gives u one questions at a
time. Previously i hadn't made the review of the questions
at the end. I was directly displaying results. Some people
give me suggestions that i should provide the way to user
so that before ending the exam he should be able to make
changes. So i added review page...
And now the problem begins...
priviously i was accessing one question only one time, now
since i m providing review facility i m accessing the pages
which are priviosly viewed. Now browser gives me the things
in cache. If i change the answer while reviewing next time
it's not showing me changed answer but the old one....
what should i do..
Is the same problem aries if i load it on internet???
Don't we have remedy on cache problems???
i m using resin server....
Thanx in advance..
Bhupendra
 
Samith Nambiar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
insert these lines ... should solve the problem
out.println("<html>");
out.println("<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">");
Samith.P.Nambiar
 
srivatsan srinivasan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just add response.setHeader("Pragma","No-Cache");
 
vikinsa
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try
<META HTTP-EQUIV="Expires" CONTENT="now">
in the <head></head> tags of the html in the jsp.
place at the top most of your jso before anything
<%response.setHeader("Cache-Control","no-cache");%>
Originally posted by Mahajan Bhupendra:
Hi all,
i have created online exam which gives u one questions at a
time. Previously i hadn't made the review of the questions
at the end. I was directly displaying results. Some people
give me suggestions that i should provide the way to user
so that before ending the exam he should be able to make
changes. So i added review page...
And now the problem begins...
priviously i was accessing one question only one time, now
since i m providing review facility i m accessing the pages
which are priviosly viewed. Now browser gives me the things
in cache. If i change the answer while reviewing next time
it's not showing me changed answer but the old one....
what should i do..
Is the same problem aries if i load it on internet???
Don't we have remedy on cache problems???
i m using resin server....
Thanx in advance..
Bhupendra


------------------
Vikas Aggarwal
Technology Associate
http://www.vikinsa.com
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic