• Post Reply Bookmark Topic Watch Topic
  • New Topic

refreshing problem in JSP  RSS feed

 
Sridhar M Swaminathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have a problem with JSP pages... Every time a JSP page is accessed... it just uploads the previous version of the page. meaning... it is not getting refreshed. Is there any way to ensure that it is refreshed before it is loaded??
Pls help
[ April 08, 2002: Message edited by: Sridhar M S ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try adding this to manage the cache control:

Dave
 
Tejeshwara Murthy K.G
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I think u can do this way try it out.
When u load the JSP page u can call a javascript function which consists od window.refresh() command.

U try with this source code.
Include the below code in u'r jsp page.
//Javascripty code
function loadrefresh()
{
window.refresh();
}
call this function in body tag on onload attribute

cheers
Tejesh
 
Biju Nair
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sridhar,
The better option is to use the code suggested by David since it will not allow that page to be cached at all and you can ensure that it will not load from cache. The problem using javascript is that
1. it will refresh the page only after the page is loaded once.
2. It does not always ensure that page will not be loaded from cache.

 
Sridhar M Swaminathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You all....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!