• Post Reply Bookmark Topic Watch Topic
  • New Topic

Refresh problem in JSP

 
mitesh mehta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application where the sorting of the records are being done.But sometimes sorting of results does not happen if the sorting is done continuously.
I think there is a problem of page refreshing.
Can anyone tell me what to do?
Thanks,
Mitesh
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have some code to show?
 
Ramesh Lakshmanan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi mitesh mehta ,
The code below worked for me.you can try it out.
Concept is you will have to remove the 'Cache' in the browser which is created in some of the Client's browser due to browser property.
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache"); //HTTP 1.0
%>
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, quite different to the code I use.

Interesting.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!