• Post Reply Bookmark Topic Watch Topic
  • New Topic

Page has not Refreshed

 
saravana kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends!
i hope all are doing fine there...
i need ur help.
i have one jsp file which has displayed data.
data extract from backend through bean controlled by servlet.
the flow is JSP-->Servlet-->Been-->Servlet--->JSP.
in servlet i have used response.sendRedirect() method in order to call the jsp file.
the problem is after data has been fetched by been i am calling the jsp page from servlet. but it has not refreshed. it display the same page which is displayed from cache.

how to avoid this problem?is there any option instead of using response.sendRedirect ?
please give me a solution.

thanks lot.
regards
saran
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it would help to add something like this to the <HEAD> of your JSP?
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="Thu, 03 Aug 1999 09:30:00 GMT">

hth,
g.
 
saravana kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Garann Rose Means ,

thanks a lot for u. its worked out. now i the has been refreshed.
thanks.
regards
saran
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!