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...?

Recommended Answers

All 2 Replies

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).

Thanks now my app is working fine.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.