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
insert these lines ... should solve the problem out.println("<html>"); out.println("<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">"); Samith.P.Nambiar
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