Refreshing a JSP page only once

Thread Solved

Join Date: Feb 2008
Posts: 9
Reputation: shashipkiran is an unknown quantity at this point 
Solved Threads: 0
shashipkiran shashipkiran is offline Offline
Newbie Poster

Refreshing a JSP page only once

 
0
  #1
Feb 7th, 2008
Can anyone tell me the code to refresh a JSP page onload...?

<meta http-equiv="refresh" content="1">

I have used this code and this keeps on refreshing the page every second. But i just want it once...Pls help me...?
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Refreshing a JSP page only once

 
0
  #2
Feb 7th, 2008
What do you mean "refresh onload". That's useless. Do you mean that you don't want the browser, or any proxies in the middle, caching it. So that everytime the page is referenced it must be retrieved anew, rather than simply loaded from cache? If so, look at the expires and no-cache headers and pragmas (google those terms).
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 9
Reputation: shashipkiran is an unknown quantity at this point 
Solved Threads: 0
shashipkiran shashipkiran is offline Offline
Newbie Poster

Re: Refreshing a JSP page only once

 
0
  #3
Feb 7th, 2008
Thanks now my app is working fine.....
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC