• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to solve refresh problem in JSP  RSS feed

 
Yegappan Balasubramanian
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
When i am doing a DB update in JSP Application,
the fields updated in db is not shown in the jsp page when going to the same page after updating.Only after refreshing the page, the updated details are shown.Can anyone suggest me how this problem can be solved.
Thanks in Advance.
Yegappan.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try putting a bit of javascript at the top of the page that will cause the page to be refreshed each time it is visited. -- I'm not sure of the exact javascript code, but I'm sure you can post something in the javascript forum and someone will be able to give you an idea of how do it.
 
Hari Haran
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also facing the same problem.If somebody comes out with some solution soon,would be helpful
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's easier than that. The problem is that your browser is caching the page. You simply have to include code in the JSP to turn off caching.
One solution (for HTTP 1.1 I believe) is to include < % response.addHeader("pragma", "No-Cache"); % > in your code.
Kyle
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
isn't this a place for mvc (push/pull )implementation ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!